In the device mgr, (rt click start -> device manager) do you see your sound device (realtek, Intel, etc.) listed and no yellow marks? If yes, move on, if no go to either system or mobo manufacturer and ook for audio driver.
If yes, what type of sound device are you trying to hook up? Without knowing, that is probably where the problem lies. Try hooking up a conventional set of speakers via a phone plug and see what happens.
I take it this is a fresh install of Win 11. Sometimes the Microsoft supplied driver is problematic. Go get the OEM driver from the manufacturer. I have personally encountered that problem.