You have to contact T-Mobile and have them push your phone number to your SIM.
Sometimes popping your SIM in an older phone for a bit works as well without additional intervention.
What's happening is your SIM card doesn't contain a phone number when it's sent. The phone number has to be "written" when it gets pushed. Simetimes it's seamless, sometimes it needs a little nudge.