The feature that allows you to send audio messages is set to automatically delete any recordings 2 minutes after the recipient listens to the message. This is necessary to save space on your device, but you can choose to keep your audio messages and delete them yourself. To stop your audio texts from expiring navigate to Settings > Messages and tap the Expire panel in the Audio Messages section. From here you can choose to have your audio messages disappear after "2 Minutes" or select the "Never" option so they remain on your device until you manually delete them.
How do I save audio messages on my iPhone?