Enter BIOS (Del/F2 on boot) > Integrated Peripherals > > Set to Enabled . If set to "Auto" or "Disabled", sound won't work.

Windows 10 may auto-install "Realtek High Definition Audio" via Windows Update (version 10.0.xxxx). However, for full jack sensing and control panel, install the official Realtek driver.