If you can't access your computer or you don't have one, you can factory reset your iPhone by going to the Settings menu and then selecting the General option. From there, scroll down to the bottom of the page and select the Reset option. You'll then be given the option to erase all data from your iPhone.