HI if your iphone is locked to some other network then you can't use it with t-mobile network until you unlock it ..You can easily unlock your iphone from network lock with the help of sites like Onlinegsmunlock.com here they will unlock your iphone using remote unlocking service ..After unlocking your iphone you can freely use it with any GSM sim ...