Hi you can unlock your iphone 3gs from AT&T network lock either by asking the AT&T network provider or else with the help of sites like Theunlockarena.com here they will unlock your iphone 3gs using remote unlocking service for affordable cost ...After unlocking it you can freely use it with t-mobile or else any GSM sim ....