Writer's Block

Anyone else go through months of inactivity on writing even when you think constantly about it? I think all the time about the book I’m writing and even the fanfiction I write, but I still can’t get myself to write half the time. It’s so annoying, any advice on how to get over/through that?