How to fix no service on iphone 3 gs?

I found an iphone 3 gs and i upgrraded it to 6.1.3 then it didn't read my sim card so i jailbroke it with redsnow and installed ultrasn0w and it was working but then the battery died and since it was a tethered jailbreak i turned it on and rebooted it and it says no service when i put my sim card in even though it asks me to put my pincode in and i have ultrasn0w and ultrasn0w fixer but doesn't work. I tried restoring it but when i try to there's an error

Added (1). It would mean a lot if you help.

Added (2). i did downgrade my baseband and have the 1.2.8 version of ultrasn0w

Install latest ultrasn0w 1.2.8 for ios 6.1.3. I think your baseband is updated to 6.15 while updating to 6.1.3 which needs to be downgraded using redsn0w. Step by step tips can be found in google search.