When external speakers are plugged in to headphone jack of Macbook Pro (with Lion), output destination randomly switches
It sounds like a hardware problem in the jack. If you can put pressure on the external part of the plug and change it: cause static or breakup it's probably a hardware problem in the jack.

If you had said you only tried one set of headphones then I'd have said it's probably a problem in the headphone plug but if it's multiple phones and speakers then it's probably the jack.

There's a sensor in that jack that monitors if something's in it or not to switch off the internal speakers. The if there's continuous sound, just switching from internal to external the problem may be that sensor. If the sound cuts out from both internal and external once in a while it's probably the jack.

If the MacBook Pro is still under warranty I'd have Apple look at it, they'll swap motherboard to make it right if it's a hardware problem at no cost to you.