After wiping the cache partition, camera stop working

Why is my Samsung galaxy s5 phone camera not working? I notice that the smartphone gallery is not displaying its entire picture and I wipe the cache partition. The next thing that happens to the phone was that the camera stops working. What happen to the camera? How do I fix the problem?
