Chosen Solution
I did a iPhone 8 housing replacement and the back camera and flash don’t work, I changed them both and they still don’t work
Probably some inductor or little piece in the mainboard was gone during the swap. You must inspect the pcb with a microscope.