Hello!
Sounds like you have Two-Factor Authentication if you are receiving a verification code request: HT204915
If you are unable to receive the verification code, then you will want to go into Account Recovery: HT204921
Account recovery is a process designed to get you back into your Apple ID account when you don’t have enough information to reset your password. For security reasons, it might take several days or longer before you can use your account again.
Please note that Apple Support cannot speed this up and can only direct you back to iforgot.apple.com to recovery your Apple ID.