It could just be a simple setting, but there might be something that requires a little more troubleshooting happening ...
Use the following fixes if your sound randomly stops working on your Windows 11/10 PC. Before you proceed with further troubleshooting steps, we suggest you check for Windows Updates and install them ...