Unfortunately, you have to do a factory reset. That will wipe out all your phone data (data on your SD card should remain intact).
To do a hard reset, keep the power and vol down buttons pressed for some time and you'll see a menu. Go to the factory reset option there (navigate using the volume buttons) and then select yes.
Please note: All your data will be deleted - yes, everything - apps, contacts, messages, everything.