Connect your iPhone to a Wi-Fi network and charge it until the battery level is higher than 50 percent.
Open the Settings app and tap on General > Software Update.
Wait until the update is listed and tap on Update Now.
Enter your phone's passcode, and the update will start to download.
Wait until the update is completed and your phone reboots, which should take a few minutes.