Volume control (sliders or keys) stops working after plugging into/out of headphone jack
According to this thread, holding down any of the volume keys as you plug or unplug the audio jack will solve this problem. It's a known issue.

See this thread: http://forums.macrumors.com/showthread.php?t=1254855