You can back up messages on an iPhone to your iCloud account, or sync messages from your iPhone to your Mac.
You can set up iMessage on your Mac using iCloud, and use it to both send and receive text messages from your Mac desktop or ...