If your iPhone stuck in recovery mode, you can go following steps solve it:

1.Press down the Home and Power buttons on your iPhone until it shuts off.
2.Connect it to your computer with the USB cable.
3.Press and hold down the Home button.
4.Hold it down until iTunes says your device is entering recovery mode.

Now you should be able to Restore using iTunes.