Reset iPhone settings. From the Home screen choose Settings > General > Reset > Reset All Settings. All your preferences are reset, but your data and media aren’t deleted.
If that doesn’t work, erase all content on iPhone. See Resetting iPhone.
If that doesn’t work, restore the iPhone software. See Updating and Restoring iPhone Software.