You need to place iPhone in Recovery Mode and Restore with iTunes. Open iTunes on your computer, connect iPhone to computer with USB cable, hold both home and power buttons for about 20 seconds until iTunes recognizes iPhone in Recovery Mode, then click the Restore button of iTunes.