To be honest these are the solutions that may or may not work.
First thing I would try is rebooting the phone by holding the sleep/wake button and home button for 15 seconds until you see the white apple logo.
If that doesn't work I would restore from backup. If that doesn't work I would restore as new. If all else fails take it to your closest apple store they may replace the phone for a working one..