In order to charge, back up and manage the data on your Apple iPhone, you need to connect it to your personal computer using an included USB cable. Connecting your iPhone to your Mac allows you to sync the iPhone with your iTunes library and make changes to the device while recharging its battery. Although syncing your iPhone to a Mac isn't necessary, it allows you to get the most out of your iPhone. This method works the same way for all models of the iPhone.
Power on your Apple Mac computer.
Connect the USB end of the iPhone's USB cable to your Mac.
Connect the other end of the USB cable to the charge port located on the bottom of your iPhone.