Much like NuttsnBolts up above I find that thematically appropriate music, movies and TV shows help me get in the groove. However if that doesn't work I can try to just write anyway. Sometimes that works, sometimes it doesn't. When/if that fails I just move on and do something else. No RP lives forever.