To back up your iPhone, connect it to your Mac, open it in Finder, then select Back up all of the data on your iPhone to this Mac. To use iCloud, tap Settings > your name > iCloud > iCloud Backup. You can also back up your iPhone using iTunes.