Some headphone jacks are designed to turn off the speakers when headphones are plugged in. It sounds like your jack is stuck thinking that headphones are plugged in - try inserting and removing the jack several times, in case there is oxidation buildup on the contacts.