Modern computers route audio through a surprisingly long chain. The app generates sound, the operating system mixes it with everything else playing, the audio driver translates it for the audio hardware, and the audio hardware sends it to whichever output device is currently selected. A failure anywhere along that chain ends in silence.
The single most common cause is the wrong default output device. When you plug in or unplug headphones, an external monitor, or a Bluetooth speaker, your operating system silently switches the default — and now your sound is being sent somewhere you cannot hear. The fix is just to switch it back.
The second most common cause is a misbehaving audio driver, especially after a system update. The driver might be loaded but stuck in a weird state, or the OS may have replaced your manufacturer's tuned driver with a generic one that does not work properly with your specific hardware.