Either the SIM card is bad, the SIM card port s bad or the radio is bad. The fastest way to diagnose it is to bring it into your carrier. (If it's TMobile in the US, they might try to charge you $35 for a new SIM card, so if it comes to that, tell them "No, thanks" and get on eBay. There are TMobile SIM cards available for under $4 shipped.)