Text messages and iPhone X question.

Do you have the “do not disturb” mode on? Mine is set between certain hours and during that period, all notifications are silent. Check your settings.