I had this same issue on my toshiba laptop, just right click on the little speaker icon next to the time and date in taskbar, and select "Playback Devices" once you get there you should see speakers and headphones as your sound devices, just change default to headphones and from there once you remove the headphone plug it'll go back speakers being default and vice versa when you plug headphones back in.
Hope this helps