|See 7. Color Codes section here:|
Your post is unclear as to what works where, but if the
speakers work in a sound output jack and the headphones do
not work in that same jack, then the headphones or the headphone
connector is flaky.
If the speakers work in the front Aux jack, then the
headphones should work in that same jack as well. If nothing
works in that jack, the front Aux jack connection might not be
connected ( via wire) through to the right post on the motherboard.
Just another stupid saying...