hardware breaks down and needs repair. Sometimes even the repair would cost more than the current value of the camera and then, usually, one buys a new one.
If you still got warranty, use it.
A few weeks ago , a strange error has happened to my camera , one day i turned on the power button the lens of the shutter of camera opened as usual , But suddenly the camera stopped working , shut down and the lens remains opened until now , the camera don't work anymore.
My digital camera type is Benq c530