Click on Control Panel>Hardware and Sound>Sound.
You should get a window that displays your audio devices: probably speakers, Digital Audio, and headphones (or similar).
Plug your switched-on speakers in and select Speakers. Click the Set Default button.
You should now find that when you plug your speakers into the jack socket, the sound comes from them; when you unplug them it should come from the computer's own speakers.