Is there a term for a catchy tune that stays in your head after you hear it? The Germans call it an earworm.
Most songs, especially of the pop variety, tend to contain a "hook" which is designed to, well, hook into your mind. Not quite the answer to your question but a part of it. You can read more about musical hooks on Wikipedia.