If someone had access to your phone, the only way they could have erased your texts is if they did it themselves. If you wish to save copies of your messages on your computer for future reference, you might use an application such as PhoneView (for Mac) or TouchCopy (for Mac or Windows).