how long does it take to restore your iphone?
If the download takes more than 15 minutes and your device exits the recovery mode screen, let the download finish, then repeat step 3. After the Update or Restore completes, set up your device.