IPhone 4S spinning wheel of death fix?

My brother gave me his jailbroken iphone just this morning. Since I didn't want it to crash from the jailbreaking i went to restore it in the erase all content and settings. This was at 10:00 am. Its now 4:45 and its still spinning. The lock button is also pushed in so i have no way of turning it off without letting the battery drain, and I was plugged in for about 2-3 hours. Is their any way I can fix this?

Thats because its jailbroken, you can't restore and erase all data from settings in a jailbroken phone. The only way is to connect your iPhone to iTunes and restore it from there. This has happened to me before.