Whenever a camera (any camera) starts acting weird:
1) Format the memory card. Back it up first, as everything will be permanently deleted.
If that doesn't work then:
2) Reset the camera to factory settings (through the menu).
99% of camera problems could be fixed this way. Of course this doesn't include physical damage (drops or spills, etc.).