I usually listen to music that fits my mood. It tends to block everything else out. So I can write. I have a few play lists with everything from country, rock, R&B. If I like the lyrics I'll listen to the music regardless of genre.
Carlos Santana Feat. Everlast. Put your lights.' Has been inspiring me lately.