You can't restore the phone's OS without the security code. That code is actually used to confirm the reset operation. Usually the security code (if it's not changed) is 12345. Try using this and if it fails, you will need to visit a local phone service shop.