For Camera, you can try clear cache and check.
Run SMMI test to check if this is related to hardware, factory reset once.
How to Enter SMMI_TEST (test hardware)
Go to Calculator=>type " .12345+= "
you will be entered to SMMI_TEST
If nothing works, please visit a nearest service center.