Are you asking how to do a regular reset or how to factory reset your phone?
Before you do any of that, you should check to see if you had a secondary email attached to your Google Account, and you can recover the account from there. Other than that, you can call Google and have them recover the password for you.
Also, get a password manager.