Restore locked iPhone to factory settings
I recently found an iPhone on the street. I tried to give it back to its owner but I couldn't: I tried to phone him but the phone was locked by code and I could not see his/her number. I tried hard to hack the code by: emergency call -> #### -> quicly press the lock button, but it didn't work. Finally, I gave up and decided to restore it to its factory settings and keep it.
Then, I tried to restore it by connecting it to the computer while pressing home button, but in the middle of the process iTunes told me that I had to unlock it before I could go on.
So I have two different questions. First one is if there is any way to find out the owners phone number. And second one is if there is any way to format the iPhone so that I can erase all the previous information and use is as if it was new.
Thanks for your help.