Tried to upgrade a jailbroken iPhone...!!!

I recently tried to upgrade my iphone that has been jailbroken and it crashed I then tried to restore it back with itunes but it crashed again🙁. I tried to go into DFU mode and tried to restore through redsnow but it still doesn't work. i tried a different version of redsnow and it shows that my iphone is in WTF mode. Plz help me out with this. what should I exactly do to restore the iphone back to its factory settings..??????????????🙁

BTW i have an iphone 3g
Put into dfu mode and update thru iTunes.
I tried that but it doesn't work either
run ifaith to save blobs then create custom firmware and pawned dfu then install new firmware.

Original thread: https://forums.imore.com/threads/tried-to-upgrade-a-jailbroken-iphone.245730/