I love it when that happens.
I walked into practice a couple of weeks ago and said "I've got this bass riff going through my head. It's kind of surf rock meets The B52's". Then started playing the riff. The rest of the band joint in, including the singer with some ad-lib lyrics and it was exactly what I had in my head.
I'm still constantly amazed by being able to create music with other people.