1. Reboot your computer.
2. Make sure it's connected to the internet
3. Make sure you've downloaded the latest version of iTunes
4. Reboot your iPhone 5 and then connect it to your computer via USB and then initiate the computer's iTunes app.
5. When iTunes detects your computer, check for an available update.