See the article How to use account recovery when you can’t reset your Apple ID password - Apple Support
What is account recovery?
Account recovery is a process designed to get you back into your Apple ID account when you don’t have enough information to reset your password. For security reasons, it may take several days or longer before you can use your account again. We know this delay is inconvenient, but it's important so that we can keep your account and information safe.
Before you start the account recovery waiting period, try to reset your password.
- If you don’t know your Apple ID, try your email address or phone number. In addition to your Apple ID, you can sign in and reset your password with other email addresses or phone numbers on file in your Apple ID account.
- Find out how to reset your Apple ID password on a trusted device or through the Apple Support app on a family member’s iPhone, iPad or iPod touch. You can also visit an Apple Store and ask to use a device on site.
- If you set up an account recovery contact, they can also help you reset your password.
Only use account recovery as a last resort when you can’t sign in or reset your Apple ID password.
Follow the complete steps in the article .