Chosen Solution

I replaced the lightning port connector on an iPhone X and now one of the rear cameras doesn’t turn on. Also the flashlight function doesn’t work but when you take a photo flash turns on.

Sounds like the connection is bad or you may have a torn flex. Reverse back on your assembly of the device to see what may have been damaged.