IPhone 4s passcode not working?

The locking passcode that comes and asks for the 4 digit passcode isn't coming up anymore. I reset it and made sure it was on in the settings but it's still doing it. I turned it off and on and it did it once but then stopped. I'm really angry; I only got it yesterday.

Hmmm may have to restore it.

I have iphone 4