If you enter the wrong passcode six times in a row, your iPhone will become disabled for a certain amount of time. The more unsuccessful attempts, the longer the disabled time period.