Chosen Solution

my camera was broken so i replaced it it looked like it was fixed but that night it stopt wording kinda it worked after i rebooted and when i locked it it stopt working but now i can get it to work sometimes

check if any signs for liquid. back up ur iPhone install your new camera and restore the phone. its should solve the issue