Text messages are stored on the carrier's servers and are delivered once your phone is powered back on and connected to the network. They are not lost, but may be delayed in their delivery.