Hello,
Microsoft may temporarily block your account if it detects any unusual activity. If you are not receiving a security verification code at your recovery email address or phone number, wait at least 24 hours before requesting another code. Repeated requests may reset any time lock set on your account.
Meanwhile, try signing in from another device or web browser.
You can also connect to a different network, such as a mobile hotspot, and then request the verification code again.
If you still do not receive the code, try running the automated Microsoft account recovery tool using the website below.
How to recover a hacked or compromised Microsoft account
or , use the account recovery form here to recover your account.
Remember to use a familiar device from which you've frequently accessed your Microsoft account, as well as a familiar location. Microsoft will review your responses and respond within 24 hours. If you are verified, instructions on how to log back into your account will be sent to you, and if you are not verified, you will need to submit the Account Recovery form again. You can do this up to 2 times every 24 hours.