Do you have multiple programs trying to use the webcam at the same time? If you do, only the first one may work, "grabbing" the device and preventing other programs from seeing it. For example, if I use one of the Logitech applications with mine, Skype can't use it at the same time.
Check for this, making sure that only one program is trying to use your web cam.