How to restore an iphone 4 with i tunes?

Well I had an I phone 4 but I used it like an iPod and I tried to update it to the IOS 7 but it wouldn't work so I tried to update it with ITunes but that didn't work either, during the process of updating an error occurred and a message popped up saying I had to restore the phone, so when I tried to restore it, during the process when it was almost done an other error occurred, now it does that every time I try to restore it. What do I do?

Hmm i heard that iOS 7 has battery drain issue, i will suggest you to wait for another software updates. If you want to reset your phone, just use the reset function in the general settings and choose "reset all contents and settings". You will need to be connected to internet or iTunes if you want to reset. Becareful though, once you upgrade, you can't downgrade.