Hi @johatan ,
Here’s the [https://downloads.dell.com/manuals/all-products/esuprt_laptop/esuprt_inspiron_laptop/inspiron-15-5559-laptop_service%20manual_en-us.pdf|service manual] for the laptop, taken from this [https://www.dell.com/support/home/en-au/product-support/product/inspiron-15-5559-laptop/docs|webpage]
The webcam wiring is part of the display cable.
Go to p.85 to view the necessary pre-requiste steps and then the procedure to remove/replace the display cable. This will allow you to check if it the cable is loose on the motherboard, damaged where it passes through the hinge to get to the lid or perhaps is loose where it connects to the webcam.
If the cable is faulty search online for ''Dell MC2TT'' to get results for suppliers that suit you best.