If your phone is only locked and you want to try a factory reset without a PC first, you can dial *2767*3855# on the keypad (this will delete all user data).