Hi yes only unlocked iphone can be used with t-mobile sim ..Else if your iphone is locked with some other network provider then until you unlock it you can't use it with t-mobile sim ..You can easily unlock your iphone with the help of providers like Theunlockarena.com here they will unlock your iphone using remote unlocking service for affordable cost ....