Sorry. I always start at the simplest and work my way up.
If it works fine while using Ubuntu but not Windows then it probably is a simple setting or a
driver update. Go to 'Start' and in the search box type in 'Device Manager'. and see if you have any exclamation marks.
It also may just be a glitch. Enabling and Disabling might help.
Control Panel
Hardware and Sound
Sound
Right click on 'Headphones'.
Click 'Disable'.
Wait a couple minutes or do a reboot
Then right click again on Sound.
Choose 'Enable'.