Just replace the camera, it probably broke. I assume you're talking about the back camera, so the speaker is not related to it.
open