I would bet anything, that your "T-Mobile" phone is (locked). Most all American phones are!
Otherwise, you could purchase and install a Thai sim card, then use the prepaid phone cards for cheap calling.
Perhaps it's possible to get your phone (unlocked) by a shop in Thailand?
Lot's of posting on this subject, before. Try using the search engine (above), for more info.