I you're unable to unlock your iPhone after typing the wrong password too many times, the phone will be locked. The only way to unlock it is to connect your phone to computer and use TunesKit iPhone Unlocker to unlock your iPhone. This will only takes a few clicks and your iPhone will be reset without screen password.