Try to reset your device. This won't delete your data stored on the phone.
- Press and hold the Sleep/Wake button
- Press and hold on the Home button
- Keep holding both buttons until the display turns off and back on with Apple logo on it.
If it does not help tale your iPhone to the Apple Store for further diagnostics.