Keep CS2 running and play audio in another app. If you can hear it, open Settings → System → Sound → Volume mixer and find CS2. Check the game’s volume and app output device.
In CS2 audio settings, compare the selected device with the one playing Windows audio. If you reconnected a headset while playing, select it again and test in practice. If CS2 is missing from the mixer, return to the game and try playing a game sound.
If game and menu sounds work but team voice is missing, check voice volume and muted players separately. If other apps are silent too, start with the Windows output device.