Write something else. I have two assignments I was completely stuck with and at a point where I was doubting my ability to string five words together, and I took a day off from them and instead wrote a fic I really wanted to write, chunked out more words in one day than I ever did before. Went back to my assignment the day after I finished that fic, and it's going better now because I'm feeling more confident.
Re: what helps you get your writing mojo?