My iPhone won't unlock despite correct password?

I have an iPhone 4 and the password has been the same (4 numbers) for the past 8 months. I was able to unlock it fine around half an hour ago, but now it won't work. I'm sure that I typed in the same exact 4 numbers, yet it keeps saying it's wrong and locking me out.

What do I do? It won't let me sync to iTunes because my phone is locked.
Again, I'm 100% sure I have the right password.

Do you mean your phone is not connected to iTunes? You can reset/backup from your iTunes account and that will probably remove all your files but you should have your phone unlocked

Have the wright pass word and still won't un look so i can get in to the internet