Hit Windows Key + R, and enter mmsys.cpl, and hit Enter. Then click on speaker configuration and set it to 5.1 7.1 or whatever your system can run. All the other answers are wrong, and the people posting them are clueless. Windows 11 has an issue that needs to be fixed. This will solve your issue in the meantime. You will have to continue to do this until its fixed. Make sure to run the Test, so you can see that all of your speakers and sub are working.
If you are on Windows 11, the you should already have the proper audio drivers with the proper audio configuration app.
And that means you launch Realtek Audio Console app or HP Audio app or B&O Audio app or Dell Audio app or Waves MaxxAudio Pro app to select 5.1 or 7.1.
If you couldn't find the proper Windows 11 drivers before you upgrade to Windows 11, you shouldn't upgrade to Windows 11 in the first place.