How to restore an iphone 4 when the lock button doesn't work?

How do i restore an iphone 4 when the lock button doesn't work?

Do you mean restart? You don't need lock button to restore it. You can restore it in settings or by iTunes. You click on iPhone than reset… You have to go and fix lock button because there's no help to you if your iPhone turns off. Never buy iPhone again. It was the best smartphone before but now it just breaks so easily. Try Android. Anyway if you reset it it will restart automaticaly. If you lose battery, when you connect it, it will in few minutes turn on again. In iPhone settings you can find na option ASSISTIVEtouch… It will help alot.