Hello, thank you for reaching out to Microsoft Q&A.
I understand that you are having trouble receiving verification codes.
May I please know if you have alternate security contact methods, such as a phone number or email address, currently active? Do you receive any error message when requesting the verification code?
Have you tried signing in to your account on a different device or in a different browser to see if you receive the verification code there?
If you no longer have access to your recovery verification methods, you will need to replace the security information in your account. However, if your recovery methods are active and you are still having trouble receiving the verification code, please refer to this article for reference -
Troubleshoot Microsoft verification code issues
Let me know if you still need more help.