HTC Desire 816g only front camera available

Hello everyone,

I have HTC Desire 816G Dual sim, whenever I click on the camera application it open the front (Selfie) camera but there is no option to open the back (rear) camera, I tried flashing with SPflash tool and still no success.

how can I get it to work?