There are two volume settings on your MBP. One is for the built-in speakers and the other is for external speakers/headphones. If you mute or set the volume with headphones/speakers plugged in, that has no effect on the mute/volume setting for the internal speakers, and vice versa. If you're getting sound from your internal speakers with headphones plugged in, make sure the plug is all the way in.