Restart your phone and see if you can send and receive text messages after. If that doesn't help, contact your carrier to report the issue. The problem could be on their end.