How to back up my text messages from iPhone to computer
when connecting your iPhone to your computer, head over to iTunes and make a backup. Make sure you're backup on your computer not on iCloud. Please visit this Page where you find the necessary informations about viewing saved text-messages:

How to Backup iPhone SMS to Your Computer - Hongkicat 

Hope this helps :) 
Cheers

moesphemie