Chosen Solution

Actually my phone was !#^&@@ off by car. But everything is working fine except both cameras & flashlight. Is it MB problem or camera’s problem? There is no crashes around front camera but housing around rear camera is totally messed. Is there any common components between rear cam, front cam & flashlight? Should I try on MB or cameras? Or if cameras then which camera I should replace?

You are better off trying to replace the front and rear camera first as they are pretty much cheaper and easier to repair. Rear camera assembly part: iPhone 5s Rear Camera Guide to replacing rear camera: iPhone 5s Rear Facing Camera Replacement Front camera assembly part: iPhone 5s/SE (1st Gen) Front Camera and Sensor Cable Guide to replacing front camera: iPhone 5s Front Facing Camera and Sensor Cable Replacement If that doesn’t work then it’s most likely a camera ic / component chip controlling the front and/or rear camera which would need to be replaced as it would be most likely damaged.