How to return my iphone to it original state so I can unlock it?

I got an iphone and try to hard reset it and it froze un reset loop, jailbroke it and now doesn't read my sim card and can't use it

Restore it when you plug it in to your PC or MAC

I had a similar problem, this is what I did.

I plugged it into my PC and restored the whole thing, after restoring it, I then updated it right away. I used the unlock software that I bought from http://iPhoneunlockshop.com, this led me to another fully updated and unlocked iPhone.