How to reset iPhone without Apple ID password?
Resetting an iPhone without an Apple ID password can be challenging, but it’s possible with certain steps. First, try using the iForgot tool at iforgot apple com website (https://iforgot-apple-com.com/) to recover your Apple ID or reset the password. If that doesn’t work, you can put your iPhone into recovery mode and restore it via iTunes or Finder. However, keep in mind that activation lock will still require the Apple ID credentials after the reset. If you’re the rightful owner and face issues, contacting Apple Support with proof of purchase can help unlock your device. Always safeguard your Apple ID credentials for future use.

-
Thomas commented
If your iPhone shows SIM failure and you need to reset it but don't have your Apple ID password, the process can be challenging due to Activation Lock. However, if you're troubleshooting SIM-related issues and a full reset is necessary, you can try resetting the iPhone using Recovery Mode or iTunes/Finder. Keep in mind that after the reset, the iPhone will still require the original Apple ID credentials for activation. If you're resetting due to a SIM failure, first try network-related fixes like reinserting the SIM, resetting network settings, or checking for carrier updates before opting for a full device reset.
https://techbroc.com/how-to-fix-sim-failure-on-iphone/