Managing personal Outlook.com account settings, security, and privacy
Hello,
Use a private browsing tab and connect your device to another Wi-Fi network, such as a mobile hotspot network, and see if you receive the verification code. Sometimes the block may be tied to the specific wi-fi network you are connected to.
If you are still not receiving the verification code, you can run the 'Microsoft verification code troubleshooter' from the link here-
Troubleshoot Microsoft verification code issues
If the troubleshooter did not help, you can try the account reinstatement form here. Select "I am not receiving the provided code" and submit the form.