This is why I recommend the usb sound cards, they tend to just work. Windows has a frustratingly complex sound system and there are lots of ways it can get messed up. You may need to dig into the bios to make sure the onboard card is enabled, or uninstall and reinstall the sound card drivers.
USB to 3.5mm Jack Audio Adapter,... https://www.amazon.com/dp/B08G44JY6Q?ref=ppx_pop_mob_ap_share