Hi,
Is the camera not working in all apps or just a specific app?
To check, type Camera in the search bar and press Enter. Does it work?
Try the suggestions from AI, and if the issue persists, please check the camera lens carefully to see if there is a cover, such as a camera shutter. Slide it open to uncover the webcam.
If the issue remains the same, go to your computer manufacturer’s website and download and install the correct camera driver for your model. Then restart your computer.