iPhoneX doesn't alert me when receiving text messages from a particular contact
I see that you said you do not have "Do not disturb" but there is also a contact specific setting "Hide alerts."

Go to Messages> select the contact that for which you don't receive the notification and make sure the "Hide alerts" toggle is not enabled.