need help with iphone 3gs 3.1.3

hi
everybody, i need help with iphone 3gs 3.1.3.
i think i block my iphone 3gs, i was trying to jailbreak and unlock by using blackra1n. now on display show only apple logo, when i connect my iphone to computer doesn't recognize computer and itunes and run out the battery.
PLEASE HELP
Blackra1n doesn't work wit 3.1.3. Put ur phone into DFU mode and restore in iTunes. Hopefully u saved ur shsh blobs in cydia so u can downgrade back to 3.1.3, then jailbreak using Spirit
Then use ultrasn0w from cydia to unlock
you need to jailbreak using spirit. Spirit

Original thread: https://forums.imore.com/threads/need-help-with-iphone-3gs-3-1-3.193087/