Hello
Just to set up expectations, this issue can be either hardware or software related, and it is not possible to tell at the moment.
Just to make sure all software side is covered,
Most camera issues can be due to a physical privacy cover covering the lens. Make sure that's not the case.
Otherwise there is usually a physical button/key/switch you can use to turn the camera on or off. For example, most Lenovo uses F8 or Fn+F8, or a switch above the lens, HP has a camera key or a button on the side of the laptop, MSI uses F6 or Fn+F6, etc.
Otherwise, please hold down Windows + R keys, type in msinfo32.exe and hit enter. Then share a screenshot of the System Information window. Thanks!