Need to erase iPhone?

There's a twist though: it won't connect to iTunes because it's been showing the apple restart logo for 1 hour. And I can't use find my iPhone to erase it because the phone can't connect to internet. What do I do?

Have you tried rebooting it to get the logo off? Hold the power and home button. If it is newer without an actual home button, hold the power and volume down till it restarts. That's the best that I've got for now.

Try putting it in DFU mode.

https://www.theiphonewiki.com/wiki/DFU_Mode