Trying to Restart my Jailbroken iphone but its stuck on the loading screen?

I jailbroke my phone and i wasn't happy with cydia so i pressed to erase all content and setting to restart my whole phone, and thn it turned black and its been on that circle loading swirly thingy, is been like this for about a half an hour, what's taking it so long to load? (btw my on/off button doesn't work i have to use my charger/home button to wake it up) is it broken or what do i do?

Resetting from the phone's settings menu is the last thing you want to do to a jailbroken phone. With the power button broken I think you're screwed but you can try opening up iTunes, then pressing and holding the home button and then plugging in the usb while you're still holding the home button… All in that order. Hopefully after about 10 seconds a message will come up on iTunes saying it's detected a phone in recovery mode. If that doesn't work, I think you just found out what a "brick" is. Sorry.