If you forgot passcode and can’t erase iPhone wirelessly with Apple ID passcode, or iTunes doesn’t reset an iPhone that says Disabled, Unavailable or Security Lockout after entering wrong passcode too many times, or even iTunes can’t recognize the phone, you may unlock your locked iPhone with a 3rd-party reliable tool from AppGeeker:
Fix iPhone stuck on black screen:
https://www.appgeeker.com/ios-system-recovery/iphone-screen-is-black.html
iPhone could not be restored, unknow error occurred:
https://www.appgeeker.com/ios-system-recovery/iphone-wont-restore.html
Enter Recovery mode:
https://www.appgeeker.com/ios-system-recovery/put-iphone-ipad-into-recovery-mode.html
iPhone 8, X, XR, SE (2Gen or later), 11, 12, 13, or newer: after connecting the phone to computer, press and quickly release Volume Up button, press and quickly release Volume Down button. Keep holding the Side button about 20 seconds until you see the recovery mode screen.
iPhone 7: After connecting the phone to computer, keep pressing and holding Volume Down button + Side button about 20 seconds until the recovery mode screen appears.
iPhone 6S or older: After connecting the phone to computer, keep pressing and holding Home button + Power button about 20 seconds until the screen displays recovery mode.