The following steps are intended for the HTC EVO 3D running any Android software.
Tap the Menu Button at the bottom of the screen.
Tap Factory Data Reset
Tap Reset Phone
Tap Erase Everything.
Once the phone has powered back on, you will need to set it up for the first time.