Its ATT and APN is locked . Strangely- I took out sim and got TextNow app which gave me free # over wifi and i was able to do so- perhaps ruling out the phone.
The SIM card is what identifies your device to the mobile network. If the SIM card is faulty it almost certainly can cause a failure to send/receive SMS/MMS.
If you need additional help or have more questions or details to share, please join the site so you can reply in this thread. See this link for instructions on how to join Android Central.