How do I to a clean install on my X but transfer my sms and email history?

I am assuming when I boot my new iphone x tomorrow I will be asked to restore from backup or new install. I am for the first time going to do a clean install I hear its a good thing to do from time to time. I get a new iphone every year since iphone 4s and always restore from backup. I have alot of archive conversations I look back to from time to time. also how would I restore my contacts?

Original thread: https://forums.imore.com/threads/how-do-i-to-a-clean-install-on-my-x-but-transfer-my-sms-and-email-history.395976/