Hi Mayank2025 ! My name is Jason. Thanks for the clear description. If you're not receiving the Microsoft verification code via email when trying to sign in, So Microsoft sometimes tries to send the verification code to your own account but its not working at all
You can Try to sign in and see if it gives other verification options (e.g., phone, backup email, Authenticator app). Just Go here: https://account.live.com
Also Check your Spam/Junk folder
Let me provide the Link for Troubleshooting verification code issues
https://support.microsoft.com/en-us/account-bil...
Let me know if I can help you further!