You probably inadvertently set something that caused the problem.

I suggest you reset the camera to factory settings.

Grab your Instruction Manual and turn to page 100.

"Reset to Default"

..