Probably your webcam is disabled.
You can enable it by going to the device manager (if you use Windows).
You can get there by running the command mmc devmgmt.msc
in
START > RUN
Then go to Imaging devices, find your camera (integrated or USB), right click and enable.
If it doesn't help you should try updating your camera drivers in the device manager.