You can either reset it from the settings menu or you can boot into recovery and reset from there, but specific instructions will depend on the phone model and android version you are running, so if you provide that information, we can help you much better.