Hello lorena_67,
Thanks for using the Apple Support Communities! I understand you need assistance regaining access to your account. I'm happy to help you find some information.
"Two-factor authentication is an extra layer of security for your Apple ID designed to ensure that you're the only person who can access your account, even if someone knows your password." Here is a link with additional information:
Two-factor authentication for Apple ID
I would also suggest taking a look at:
Get a verification code and sign in with two-factor authentication
If you have any issues after reviewing the links, please let me know. Also, can you tell me how long you have been trying to regain access to your account?
Have a good day!