First you must have been or are a T-Mobile US customer. If not they will not unlock the device. If you were or are a customer then here are the other requirements and procedures. If you are not or haven't been then you will need to have the original owner complete the unlock request.
Manage your T-Mobile account