It sounds like you need to restore your iPhone through iTunes. If you have backups enabled, iTunes will reinstall the firmware and then copy your settings, apps, and files back onto the iPhone. Also, if you've lost apps that you purchased, you can re-download them from the iTunes store.