I get like this at times, and when I do, I usually take a break at that point. It's good to reset the mind when you're in a rut, and I often find when I come back 15-20 min later, the solution to what I was working on becomes more apparent.
It's ok to feel burnt out at times, the really good programmers know how to handle that in their own specific way.