Applies to Windows 7

Why can't I connect my iPhone to my PC?

If you're unable to connect your Apple iPhone to your computer, check to make sure your phone is not locked with a passcode. If it is, unplug the iPhone from your computer, enter your passcode on the phone, and then plug the phone back into a USB port on your computer.

Windows should now recognize the device, allowing you to perform tasks such as transferring photos, music, and other files between your iPhone and your computer.