You have to type in the correct unlock code that t-mobile can give you, if your contract allows. And there are many shops around that can do it for you for a modest amount.

Kees