If you have an unlocked phone, simply turn off the phone, put the SIM card in, turn it on, then you should see "T-Mobile" in the upper left hand corner...
Or is your phone jailbroken which means it's been fake activated and ready to download 3rd party apps, but NOT unlocked?
You will need a T-Mobile SIM already activated with T-Mobile on a regular cell phone.