It sounds like you may have received a phishing alert regarding your account being locked. It's good that you did not call the number provided in the alert, as legitimate communications from Microsoft will not ask you to call a number or provide personal information in this manner.
If your account is indeed locked, it is typically due to multiple unsuccessful sign-in attempts, which is a security measure to protect against brute-force attacks. You should verify the legitimacy of any alerts by checking directly with Microsoft through official channels, rather than relying on unsolicited emails or messages.
To resolve the issue, you can try resetting your password through the official Microsoft website or contacting Microsoft support directly through their official channels. Always ensure that you are using the official Microsoft website to avoid phishing attempts.
If you suspect that your account may have been compromised, consider taking additional security measures such as enabling multi-factor authentication and reviewing your account activity for any unauthorized changes.