Hi,
Thank you for posting, I am here to help you.
Possible cause of this problem is outdated or corrupt audio drivers, incorrect sound settings, or a hardware issue like a loose cable.
To fix this please follow this steps:
Check if you accidentally tap the mute, on the system tray near the date and time check if the speaker or audio icon is muted. Unmute and check if the sound will work.
Check device input and output, Make sure both input and output is set to your Headset device. Make sure headset is connected to you Computer.
Run Audio troubleshooter:
Go to Settings then select System and choose Troubleshoot. Click on Other troubleshooters, then under Audio click Run and follow instruction.
Update audio driver:
Click Start button then type device manager and press enter to open. Select the arrow next to Sound, video and game controllers to expand it.
Select and hold (or right-click) the listing for your sound card or audio device, such as headphones or speakers, select Update driver, then select Search automatically for drivers. Follow the instructions to complete the update.
For more information you can check this article:
looking forward to helping you out. If you need more help please let me know. If the answer is helpful, please click "Accept Answer".
Best regards,
Jansher