If you had text messages backed up as well as had the phone sync with your MS account (by default, it can be set to Google, a work account, etc.) then your data should be safe. Log into Outlook.com and check the Calendar and People sections. Text messages will be restored to a new Windows Phone if you get one.