Sound passes through a chain: the app, the system mixer, the selected output device, and finally the speaker or headphones. Silence anywhere along that chain sounds identical.
The most common break is output selection. Plugging in a monitor over HDMI or connecting headphones switches the default output, and audio then plays to a device with no speakers.
Per-app volume is the second. Modern systems keep a separate level for each application, so one app can be muted while everything else works normally.
Only after those two should you suspect drivers or hardware — and a quick test with another output device usually settles it.