Your driver has set by default your internal speaker as main peripheral.
And the reason why when you plug it to the front jack it does work, it's because it has priority over the jack behind (all drivers, or most of them work that way).
To do this you got to go in your Audio advanced settings, and change the peripheral by default to your external speak, you must know its name to choose the good one.
Good Luck