Ubuntu 20.04: Sound Problem
delete the .config/pulse folder go reboot and get back to your desktop
Your speakers may be detected as unplugged which causes them to be ignored.
sudo apt install pavucontrol sudo pavucontrol Configuration tab > Profile > Analogue Stereo Output (unplugged) (unavailable)
Speakers should work but it will reset when headphones are unplugged or system rebooted.
sudo apt install alsa-tools-gui sudo hdajackretask Parser hints > jack_detect = no Apply now Install boot override