Things to try (and how):
Restart your iPhone. This can sometimes clear up issues.
If no messages are being received, check you don't have Airplane Mode enabled.
Try turning Messages off and then on again. Settings > Apps > Messages
Read this article about message filtering. Make sure you aren't excluding unknown senders, and how to do more refined filtering if you do use this feature. Screen, filter, report, and block text messages on iPhone - Apple Support
It is also possible that your carrier has blocked messages from sources that use what is known as a short code to identify the source instead of a full number. This is an anti-spam measure and can either be resolved by a better behaved source, or asking your carrier to disable this filtering for you.