Why does my laptop doesn't have sound?

I deleted a few programmes off my laptop last night and now it doesn't have any sound coming out, when i play music or watch videos on youtube, i might of deleted a programme that lets you listen to music on my laptop but i don't know how to get it back now. I don't know what it were called or have no idea on how to get it working.

when i play music on my laptop it will come up with windows media player as usual but then a message when appear saying

"Windows Media Player can't play the file because there's a problem with your sound device. There might not be a sound device installed on your computer, it might be in use by another program, or it might not be functioning properly."

can someone please help me out cause its really doing my head in, thanks ever so much if you can help me

Its the driver

1. Look for your laptop model (typically on a label under the battery (if you can't find it, go to step 1.5)
1.5. Open up "computer" in the start menu, right click an empty space, select properties from the menu, look for "model"
2. Go to your laptop manufacturers website (eg asus.com lenovo.com etc)
3. Look for a support link, this is typically in the upper right of the page
4. Look for drivers and downloads
5. Some websites have auto-detect, but if not, look up your laptop model number
6. Find "audio drivers" and download the latest one
7. After its downloaded, install it
8. After install, reboot

Go to control panel and then sound and check is something disabled if is enable. Or you can also check device manager is there any sound drivers disabled. To get acces to device manager or control panel just write it to click windows logo (start)