Connect to iTunes (may need to be a physical USB connection) ...

in iTunes, select your iPhone in the sidebar (you may have to select View --> Show Sidebar to open the sidebar if it isn't already showing) -- In the Summary pane there should be a "Restore iPhone" button which should let you either restore from backup or restore to factory settings =)