For me, at least, writing helps me get through difficult times. It isn't so much that I use writing as an outlet for my emotions, so much as it is writing distracting me from whatever it was that was bothering me. Writing involves critical thinking, problem solving and whatever part of our brain is the artistic part. So its easy to focus all of our energy into that project, thus diverting us away from the problem temporarily. It's kind of like a vacation for your over-stressed brain. However, I understand when the words just refuse to come out. In this instance, it might help to pick up something that is already moving. In other words, maybe go back to an old project and work on that, rather than trying to start something new. Or grab your favorite book and start writing the words you see inside. Get your fingers moving so that you can just start writing your own stuff naturally. Reading is also a booster. If you haven't read anything in a while, that might be why you're stuck. And I don't mean any reading, I mean reading in your specific genre. If you write poetry, read some poems. If you write romance, read some romance novels, etc. Immerse yourself in the writing and it will all come back to you.