See the iTunes section of How to back up your iPhone, iPad, and iPod touch - Apple Support
In addition to backing up, you may also want to sync selected data to it via iCloud. To do that see the settings described below:
On the iPhone: Settings > Accounts & Passwords > iCloud
On the Mac: Apple menu > System Preferences > iCloud