Ta-daa! you have unlocked the iPhone. However, you will only be able to call, edit and email any contact.
Ever wanted to unlock an iPhone when you did not know the passcode? This article tells you how to hack an iPhone's passcode. This will open the contacts app from which you will be able to browse, edit, email any contact.
Tap the "Emergency call" button on the lock screen.