Chosen Solution
A while ago I cracked my phone and replaced the screen. Camera was black so I figured I would get a new one to fix the issue. New camera didn’t fix it so now I’m here to find a possible solution. I replaced the screen and front camera but neither flashlight or front & rear camera will work anymore.
When one camera is failing, occasionally the other will stop as well. so after trying the other camera module, it would be time to look into an issue with either software or board. start with a hard reset. (hold the power button and home button for 15-20 seconds or until you see the apple logo show up). this will dump the cashe, and fix some software bugs. Assuming you followed the basic guidelines for all repairs, and disconnected the battery before any repair, and took antistatic precautions, then we can rule out Shorts and ESD, and move on to physical board trauma. The board can easily chip and scratch when metal tools are used. scan the board for any missing components. a microscope really helps with this issue.