Nobody on this forum can do anything about this, no more than you can do anything to help us with our accounts should we need it.
You say "it is not working" which isn't very descriptive, IMHO. Have you kept your trusted numbers updated? It is sending a code to your trusted device or trusted telephone number. You then need to enter the code into the device into which you are trying to sign in. If you aren't receiving the codes then verify you are using a trusted device or number. You can only enter a code request a certain number of times before you have to wait until Apple will let you try again.
This is from the section "About trusted phone numbers and trusted devices" in the article: Two-factor authentication for Apple Account - Apple Support :
To see, add, or change your trusted phone numbers use one of these methods:
● On your iPhone, iPad, or iPod touch: Go to Settings > your name > Password & Security. Next to Trusted Phone Number, tap Edit.
● On a Mac computer choose Apple menu > System Settings (or System Preferences), then click your name (or Apple ID). Click Password & Security, then add or remove a trusted phone number.
● Using a web browser: Go to the Account Security section of https://account.apple.com .
Similar information for the iPhone can be found here --> Use two-factor authentication for your Apple Account on iPhone - Apple Support
If you had set up an Account Recovery Contact ( Set up an account recovery contact - Apple Support ) you can also get a code that way.
If you can’t sign in, access a trusted device, reset your password, or receive verification codes, you can request account recovery to regain access to your account. This article explains how to recover your Apple ID after a waiting period - How to use account recovery when you can’t reset your Apple Account password - Apple Support
You may also wish to read the articles 'Two-factor authentication for Apple ID' ( Two-factor authentication for Apple Account - Apple Support ) and 'Get a verification code and sign in with two-factor authentication' ( Get a verification code and sign in with two-factor authentication - Apple Support ). Various sections contain information that is useful in understanding about the trusted devices (an iPhone, iPad, or Mac that Apple knows is yours) system, and how to get a verification code on a trusted device or at a telephone number.
Apple Recommended (an older forum system whereby Apple officially designated a reply as likely containing a solution) reply by ASC contributor Eric Root:
Too Many Codes Sent - Apple Community -- "Normally, the wait time is 8 hours after the last notification."
and:
unable to get verification code for apple ID.
unable to get verification code for apple… - Apple Community
From: Suddenly not getting texts for two factor… - Apple Community
Q: Suddenly not getting texts for two factor authentication on iPhone
A: Reset network settings:
Go to Settings > General > Transfer or Reset iPhone > Reset > Reset Network Settings