I've had every form of writer's block imaginable, so I have various ways of dealing with it. When it's just a minor case and I'm stuck on a scene or not sure where to go next with the story, I most commonly switch to a different part of the story that I'm more excited about writing. Sometimes I write out questions to myself about the story and then write out the answers. I like to shoot for 20 possible answers, but I usually come across the solution I need by answer 10 or 12 or so. I also like to skip to working on the end of the story and make sure I've got my destination (the ending) fully envisioned so that I know where I'm headed. Sometimes I take a break from writing to go for a run or walk with the dog. Sometimes I meditate. If it's a more difficult/prolonged struggle with writer's block, I might switch to working on an entirely different project, or I might just feel terrible and write nothing at all for a while (a more productive version of this is to just turn to other tasks that need attention). I once found myself blocked so badly, due to some major life stressors, that I stopped writing for a couple of years and went to graduate school, then taught for a few years. Finally I found myself nagged so much by the desire to write that I had to stop teaching and return to writing. It was terrifying to stop writing completely and tell myself that I might never go back to it, but I can look back now and see that it was ultimately a good thing. I experienced joy and pain and growth during those years that ultimately made me a much better and more insightful (I hope!) writer.