Chosen Solution

See the picture so I was trying to remove the logic board but one screw was still attached and it broke near the rear camera socket What can I do to fix it? How does it still work? what exactly is that part of the logic board used for?

I’d also be surprised if GPS or cellular service works. I’d agree, get that data while it’s possible

Unfortunately, you won’t be able to fix this, there are simply too many connections between both ends of the board. The reason it still “works” is that everything on the far (narrow) end have to do with various antennas and not the core digital logic. So I would take a backup of the data while you still can. If the phone works enough for you (probably not) then you can continue to use it but realistically, you will not have WiFi or Bluetooth nor will the rear camera work.