Hi marouane1996,
If you've forgotten your Apple ID and password and your iPhone is broken, you can still regain access to your account and retrieve your photos by following these steps:
- Recover your Apple ID: Visit the Apple ID account page (https://appleid.apple.com/) on a web browser using your MacBook. Click on "Forgot Apple ID or password?" and follow the on-screen instructions to recover your Apple ID. You may need to provide some personal information to verify your identity.
- Reset your Apple ID password: After recovering your Apple ID, you can reset your password by clicking on the "Forgot Apple ID or password?" link again and following the prompts to reset your password. You may need to answer security questions or verify your identity using another method.
- Sign in to iCloud: Once you have regained access to your Apple ID, sign in to iCloud on your MacBook using your recovered Apple ID and password. Your photos should be accessible in the iCloud Photos section if you had previously enabled iCloud Photo Library or iCloud Backup on your iPhone.
- Download your photos: After signing in to iCloud on your MacBook, you can access and download your photos from iCloud Photos. You can select individual photos or albums to download to your MacBook.
- Update your account information: After recovering your Apple ID and accessing your photos, it's a good idea to update your account information, including your password and security settings, to ensure the security of your account in the future.
If you encounter any difficulties during the account recovery process, you can contact Apple Support for further assistance. They may be able to provide additional guidance and help you regain access to your account.
Good luck!
Greetings
AntonBernad