This depends on how the service provider manages records of text messages. However, most service providers don't keep text records for more than a few weeks at most.