Luckily, there are two ways to reset an iPhone without the password so you can access it.
How to reset an iPhone using Finder or iTunesYou can use a computer to access recovery mode and reset your iPhone to get in without the password.
The exact way to do this will depend on what kind of iPhone you have:iPhone model How to turn off iPhone 13, iPhone 12s, iPhone 11s, iPhone X/XR/XS, iPhone 8s, and iPhone SE (second generation) Press and hold the Lock and Volume Down buttons until the power slider appears on screen, then swipe it.
To do this, you'll need to press a certain combination of buttons:iPhone model Buttons to press for recovery mode iPhone 13, iPhone 12s, iPhone 11s, iPhone X/XR/XS, iPhone 8s, and iPhone SE (second and third generations) Press and hold the side button.
How to reset an iPhone using Find MyIf you have an Apple ID account, your iPhone is probably connected to Find My, Apple's global device tracking network.