I got a problem is I unlock my iphone and I run jailbreak and activite again, and I cannot use T-mobile. now I use onesim to relock my iphone. So can I restore my 1.1.1 to 1.1.1 or 1.0.2?

Can anybody help me!!!!!