You might use the Desktop Software.
KB11320-How to perform a clean reload of BlackBerry 7.1 and earlier using BlackBerry Desktop Software for Windows You may not get the exact same OS as you were running, but you will get the latest version released by the carrier for that model.