"Messages"??? As in text messages?
Text messages are saved on the iPhone's backup if they were present when the backup was created. Restore the backup and the messages will re-appear (as will everything else from when the backup was created).
Restore your iPhone, iPad, or iPod touch from a backup - Apple Support