Depending on the version of the phone you got and what iOS version + Baseband version you got, you "may" have some options to update, the most common one will be using pwnage tool to create a custom firmware that will persever your baseband and them run unltrasn0w to unlock your phone and start using it on T-mobile. Again it all depend on your case (on what phone, iOS and BB version you are running).