Managing personal Outlook.com account settings, security, and privacy
Avoid requesting several codes in a row, as this can temporarily block the sending. Wait a few hours, preferably 24 hours, and then request only one code.
On the verification screen, you can also select Show more verification methods and check if there's an alternate email address or another option to receive the code.
Without access to any of the options, select "I don't have any of these" and follow the steps. In this process, Microsoft lets you add new security info, but it only takes effect after a 30-day waiting period, which can't be shortened.
You can find more information in this article:
https://support.microsoft.com/accounts-billing/manage/troubleshoot-microsoft-verification-code-issues