I had this same issue. I thought my battery was old hence this issue so I purchased a new battery. Even that didn't work.
Don't know why but I slapped the camera from all side and it started working again. Ithibk this must happen due to some loose connection in my case. As I encountered the same problem after few week and I tapped the camera on all sides and it started working again.