To help protect your account from fraud or abuse, Microsoft temporarily locks accounts when unusual activity is noticed. To unlock your account, sign in to your Microsoft account and follow the instructions to get a security code.
If you can't get a security code, or if your security code doesn't work, go to When you can't sign in to your Microsoft account and follow the instructions under I can't get a verification code.