Ever get frustrated when you forget your passcode? Get access to your phone using the following steps:
Once connected, iTunes will sync your iPhone and backup of all your data automatically. Next restore your iPhone. This will then show you the various backups taken. Select the most recent backup.
After restoration use your phone without the passcode. If you want to temporarily bypass the passcode screen to access your contacts see this article.