Sounds like you have a smart setting set for when you plug in your headphones. Go into your phone's settings then "extensions" then "smart settings". There should be an option called "when earphones are plugged in"... That's what you need to change.
Hope that helps.