When you are locked out and later know your password, you can attempt logging in again after 8 hours. If not, go to iforgot.apple.com for password recovery/reset procedures.