The eternal question. Sometimes I can't. The easiest way is to start a different project as procrastination, but that way you might never finish anything. I suggest taking a step back and rethinking your story as a whole. You might be able to see what's wrong with it, and why you're not excited about it anymore. Change that, and with any luck you'll be back on track.