See which, if any, of these possibilities applies to you.
See this document If your Apple ID is locked or disabled https://support.apple.com/en-us/HT204106 "If you or someone else enters your password, security questions, or other account information incorrectly too many times, your Apple ID automatically locks to protect your security and you can't sign in to any Apple services.
If you use security questions with your Apple ID, or if you don't have access to a trusted device or phone number, go to iforgot.apple.com. Then you can unlock your account with your existing password or reset your password. After multiple unsuccessful attempts to unlock your account, your Apple ID will remain locked and you can try again the next day.”
__________
See If you forgot the passcode for your iPhone, iPad, or iPod touch, or your device is disabled https://support.apple.com/en-us/HT204306, especially the section entitled Remove your passcode.
If you don't have a computer as mentioned in Remove your passcode, then "borrow one from a friend, or go to an Apple Retail Store or Apple Authorized Service Provider." Of course the last option usually is not available now.
Later the document says: "If you can't update or restore your device using recovery mode, or you can't use recovery mode because of broken or stuck buttons, contact Apple Support. Then follow the steps to set up service for your iPhone, iPad, or iPod touch."
__________
See Turn off Activation Lock https://support.apple.com/en-us/HT201441See this heading If you erased your own device.It says: "If you don't sign out of iCloud before you put your device in recovery mode and restore, it might remain in Activation Lock. That means you need to enter the same Apple ID and password that … was used when … [the device was last set up]. You might need to use: If you forgot your Apple ID https://support.apple.com/en-us/HT201354; If you forgot your Apple ID password https://support.apple.com/en-us/HT201487; and If you forgot the answers to your Apple ID security questions https://support.apple.com/en-us/HT201485. Post back if you have trouble removing activation lock.
__________
Account Recovery with Two-Factor Authentication
“If you can’t sign in, reset your password, or receive verification codes, you can request account recovery to regain access to your account. 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 to immediately regain access to your Apple ID.”
_________
See Two-step verification for Apple ID https://support.apple.com/en-us/HT204152. You'll need to use your recovery key. In this regard, do you have your recovery key? "If you ever need a new Recovery Key, you can create one from your Apple ID account page. Just sign in with your password and trusted device, go to the Security section and click Edit, then click Replace Lost Key."