Check the network signal, if network connectivity is too low then you won’t be able to receive or send messages. Alternatively, verify the carrier’s plan is active to send text messages.