If you forgot your lock screen passcode, you can erase your device and set it up again using a computer. Turn off your iPhone.
Tap the option in the bottom corner of the screen. Enter your Apple ID password to sign out of your account.
Fixes a disabled iPhone/iPad, "iPhone Unavailable" screen, or a broken screen where input is impossible. 2. Remove Apple ID Without Password