I had similar problem on my Dell Latitude. After unplugging external headphone, I lost sound on my laptop speaker.
The problem was that the switch, where you plug in external device, did not trip back. When haedphone plugged in it worked fine.
So, I plugged in my headphone pins in halfway and gently wiggled it and bingo, my laptop speaker started working again.
In short, if your external device works when plugged in but when the external device is plugged out and laptop speakers does not work, then the problem most probably is the switch within the plug in device.
Hope this will help.
Andy
Good Day to all
First of all, thank you for reading this forum. I have a problem with the Sony Notebook, Vaio VGN-TZ27GN. Not sure if it is a imported version or something as the only drivers are available on the asian Sony site.
The problem with this notebook is that it was running with speakers plugged into the audio out of the notebook, also knowing that the onboard speakers was working before. But ever since the speakers were taken out, the onboard speakers just does not play sound. The drivers are working 100%, all installed. It's unning Windows XP Pro with SP3 and all latest updates on all other software. There is a Logitech Quickcam installed S5500 with build in Mic. All of this running on a Docking Station / Port replicator as some will call it. But everything was fine untill taking out the external speakers.
I maybe thought, like the wireless, there has to be a button on the notebook letting you set what to use regarding the sound output, but no buttons and Windows XP tells me it all works fine. As soon as I plug the external speakers back in, the sound works fine!. Weird...
I tied browsing through very well known Forums, but no luck. This one guy posted the same problem, but had no replies.
If there is any help to this, I would really appreciate it.
Thanks for reading once again

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic