In most cases the webcam settings or drivers get messed up by various reasons. You can solve these issues by a simple reinstallation of the drivers for your webcam. Depending on your laptop/camera model, please visit the website of the official developer of the device you are using and download the correcsponding drivers.