If you’re having issues sending or receiving messages, try the following:
If you see 
Check your signal strength.
Weak signal from your cellular provider is a common cause of unsent messages. In the status bar, see how many bars your network connection has. If you see only one or two bars, change locations to improve your signal strength, particularly if you are indoors.
Look for 

Check that:

Uninstall any recent app updates.
Touch & hold 


If your keyboard has problems, like a missing spacebar:
If you’re having problems with messaging apps that you installed:

