I guess your camera driver has gone deleted. Go to the official website and download the webcam driver and restart your laptop to see if the problem got fixed or not. It is very rare that a webcam gets damaged. It must be a software issue. Do this and try it out. Other wise you just have to use an external webcam.