Do you mean a regular reset of a factory reset?
Depending on the phone model (since you didn't provide the model) the best route would probably be calling the service provider and see if they can unlock the phone remotely for you.
Also, get a password manager, they are life savers.