Go to your settings and look for a "security" option. Once your try to access this feature it will prompt you for a password, which could be either the last four of cell # or a default code (0000).
If your attempt works, you should see a reset option and that is the route you want to take in order to restore your device back to factory settings. Thanks.