yes your iphone will work with t-mobile sim only if it is unlocked one ..Else if the iphone is locked to some other network then until you unlock it you can't use it with your t-mobile sim ..If you want to unlock your iphone then have a look at sites like Onlinegsmunlock.com here they will unlock your iphone using remote unlocking service for affordable cost ...