The Apple ID account you are dealing with must be someone else's since it is unavailable to you. Perhaps you have forgotten your Apple ID. So, you'll need to use account recovery.
See Get a verification code and sign in with two-factor authentication https://support.apple.com/en-us/HT204974 Below is an excerpt, but read the whole document. See the bold italics below.
“If you can’t sign in, reset your password, or receive verification codes, you can request account recovery to regain access to your account. This link takes you to:
Recover your Apple ID when you can’t reset your password https://support.apple.com/en-us/HT204921which you may need to use.
Account recovery might take a few days or longer, depending on the specific account information you can provide to verify your identity. After you request account recovery, you'll get an email with a confirmation of your request and the date and time of when you can expect to regain access. … When the wait period is over, Apple sends you a text or automated phone call with instructions to regain access to your account. Follow the instructions in the above link to immediately regain access to your Apple ID.