My iphone 5 won't restore after i jailbroke it

Ok so i jailbroke my phone and got bored of it so i stupidly went into my settings and tried to update it.then, it got stuck on the connect to itunes screen and i try to restore it, it always fails.someone please help!

Try to put your ipod touch in DFU mode to restore it.
Check this link for the process: http://jailbreakhome.com/put-iphone-in-dfu-mode

Hope it helps!

Go to http://thefirmwareumbrella.blogspot.com/ and download Tiny Umbrella from download links (on the right).
Connect your iphone.
Open tiny umbrella and find your iphone from the left side. Then click Exit Recovery.
All should be fixed.