How to get into your iPhone when you forgot the password?

My brother decided to be funny and changed the password and completely forgot about it. After trying a lot of times to get into my phone, I happened to disable it. I looked up online how to get into the iPhone if you forgot the password and I connected to iTunes and clicked restore data. After about 7 minutes (after the "restoring data") the message popped up saying: The iPhone couldn't be restored. Device not found. It is hooked up to my computer. I don't know what's wrong.

You can try to restart it from the device. Hold the home button and lock screen. And then re plug it into your computer.

Connect the iPod to iTunes
Press your lock and home button at the same time without letting go until the apple icon pops up. Press and hold the home button when the apple icon pops up
Do what iTunes tells you to do