First, learn how to spell inspiration, then it will come to you.
Really though, it's different for everybody. I get inspiration for writing songs in the shower and just before I go to bed. Then, I decide not to go to bed because I have write down this great idea. Then I wake up and find out it wasn't so great.