Hello aladin and welcome to Tom's Hardware Forums.
An intermittent loss of sound would seem more likely to be a loosely connection sound card than a software problem. If sound is integral to your motherboard, but a PCI sound card. If you already have one, reseat it but if neither works, I recommend a USB powered external sound card - they seem to cure all ills, are quite cheap and come with their own driver mini CD.