Hi unless you unlock your Iphone from AT&t network you cant use your T-mobile sim in it .To solve this visit Classicunlocking.com here they help you unlock your iphone from AT&T network using Remote Unlocking Service .Here they don't jailbreak your iphone before unlocking it .I hope it will be helpful to you.........