How to reset your password if you have two-factor authentication enabled
If you have additional security protection in the form of two-factor authentication, you can reset your password from your iPhone via the Settings section. If you don't have access to your iPhone or iPad, you can use Account Recovery from iforgot.apple.com.
Navigate to iforgot.apple.com from any web browser. Enter your Apple ID, which is the email address associated with your Apple or iCloud account. If you've forgotten the address you used to create your Apple ID, follow the steps to recover your Apple ID. Type in the CAPTCHA characters to prove you aren't a robot.
Click or tap Continue.
Enter your Apple ID and CAPTCHA, then click Continue
Enter the phone number of your trusted device.
Click or tap Continue.
Enter the phone number of your trusted device, then click Continue
Select Use trusted phone number if you have access to your trusted device.
You can also select Reset from another device to use a different device than your trusted device.
Click or tap Continue.
Click or tap Start Account Recovery.
Select Use Trusted Device, then click Continue
How to find out your Apple ID if you've forgotten it
It's fairly easy to reset your password if you also know your Apple ID, but if you've also forgotten your Apple ID, you can get help from Apple to recover it.
Navigate to iforgot.apple.com from any web browser. Click or tap Forgot Apple ID?
Enter your first and last name and your email address.
Click Forgot Apple ID?, Then enter your first and last name and email address
Type in the CAPTCHA characters to prove you aren't a robot.
Click or tap Continue.
Your information will be used to find your Apple ID.
When your Apple ID is found, click or tap Go to Your Account to continue.
Enter the CAPTCHA, then click continue, then click Go To Your Account
If you also don't know your password, follow the steps for email or two-factor authentication to reset it.