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.”
_________
If you don't have, or can't recover, the needed password, see
If you forgot the answers to your Apple ID security questions https://support.apple.com/en-us/HT201485
Being able to answer your security questions satisfactorily is critical. See Security and your Apple ID https://support.apple.com/en-us/HT201303
This document says “without proof of your identity via security questions and other carefully selected criteria, Apple Support can't help you reset a password or perform any other actions on your account.”
Thus, if you can't, or couldn't, answer your security questions satisfactorily, you will need to have your original purchase receipt for the device with its serial number on it and to contact Apple Support in order to move forward in making the device functional. Here are some support options you can use:
Get a call from Apple support to help solve your problem using this link https://getsupport.apple.com/?caller=kbase&PGF=PGF63005&category_id=SC0245&symptom_id=23362
Apple ID Support https://support.apple.com/apple-id
Apple ID account security for country-specific and
region-specific help https://support.apple.com/en-us/HT204169
Get Support: We’re here to help https://getsupport.apple.com/. Go through
the options to find the best support option.
See If you forgot the answers to your Apple ID security questions https://support.apple.com/en-us/HT201485