I had the same problem this is what I tried and it worked or me
Turn iMessage off and back on, or turn iMessage off to see if texts can be sent and received.
You can also try this >
Make sure the contact is not on your block list. To do so, go to Settings > Phone > Blocked, and confirm that the user is not on any block list.
Also delete your current conversation with your contact and start a new one.