Go to your Apple ID account page and click on Forgot Apple ID or Password. If you are asked to verify your phone number, click steps for two-factor authentication. Enter your Apple ID and select the option to reset password and then click Continue.