Chosen Solution

Hello, I have an iPhone XS Max which I recently opened up, and all of it’s cameras randomly stopped working. Along with the cameras, flash and Face ID have been disabled. The strange part is, when I unscrew the motherboard and lift it some, sometimes all functions will return. Everything was working last night and I let it sit overnight, but now everything doesn’t work again. Does anyone know how to fix this issue? Thank you

Turns out the battery’s connection was not very good and the cameras weren’t getting enough power. I screwed the bracket back with some layered electric tape to keep pressure on the battery connector and now everything works great.