If you do not have access to your old phone or the phone number associated with your Apple ID, you will need to use another method to reset your Apple ID password. You can do this by going to the Apple ID account page and clicking the "Forgot Apple ID or password" link.
On the next page, you will be prompted to enter your Apple ID. After entering your Apple ID, you will be given the option to reset your password using one of the following methods:
- Answer security questions: If you have set up security questions for your Apple ID, you can use this option to reset your password by answering the questions.
- Email authentication: If you have an email address associated with your Apple ID, you can use this option to reset your password by receiving a verification code at that email address.
- Two-factor authentication: If you have two-factor authentication enabled for your Apple ID, you can use this option to reset your password by receiving a verification code at a trusted device or phone number.
If you are unable to use any of the above methods to reset your password, you will need to contact Apple support for further assistance. You can do this by going to the Apple Support website and clicking the "Contact Us" button.
I hope this information helps. If you have any other questions, please don't hesitate to ask.