Are you pertaining to the PIN code of the SIM card? If so, contact your carrier to get the PUK code, that'll be required to reset the PIN code after you enter the PIN code a specific number of times. If you meant the phone password, unfortunately, you will need to reset the phone.