My problem is usually that often do imagine components of a song in my head, yet I'm usually up past my eyeballs in work.
Later, I try to remember it and it's gone. I can sit at the keyboard for a while, play a few chords or perhaps pick a few notes on the guitar, but it never comes back.
Probably a good reason not to buy another instrument :-/