Why My camera still showing camera failed ?

i recently got a s4 and the camera is not working ,it shows "camera failed" whenever i open the app.my camera doesnt work on instagram or snapchat either.i went online and i tried everything...force stop,reset my phone ..and when i go to update software there is no update .