Use Face ID or Touch ID if it is already set up
Enter the passcode if you know it
Use Recovery Mode with a computer if you forgot the passcode
Erase the iPhone with Find My if it is linked to your Apple ID
Contact Apple Support with proof of purchase
If the iPhone is Activation Locked, sign in with the Apple ID and password used on the device
If you do not have the required credentials, use Apple’s official account recovery options
