Pangu jailbroken iPhone 4S (iOS 7.1.1) stuck after erasing contents & data. Can you help?

hello, I recently jailbroken my iphone 4s ios 7.1.1 with pangu and I did not loved the jailbreak so I tried to to erase all the documents and data from the iphone setting. But it did not got erased and I tried to erase all the data through icloud.com/findmyiphone , and i kept the iphone in the lost mode through icloud. instead of being erased it stucked on the loading sign for too long time and i pressed the on/off button and menu button to switch off it. while i turn on my iphone it turns on, but after 10 seconds or so it again tries to erase all the data and gets stucks showing the loading sign. i have my iphone with me and it is not lost and it very much frustrating me, please prveide me the solution of this problem
re: Pangu jailbroken iPhone 4S (iOS 7.1.1) stuck after erasing contents & data. Can you help?

Put the iPhone in DFU mode, connect it to iTunes, and then select to restore it. [WARN]You will lose your jailbreak and iOS 7.1.2 will be installed on your device.[/WARN] If that is not what you want, then disregard this post and wait for a better response.
i have the same problem , but cant get my iPhone into dfu mode because the home button doesn't work .

Original thread: https://forums.imore.com/threads/pangu-jailbroken-iphone-4s-ios-7-1-1-stuck-after-erasing-contents-data-can-you-help.292854/