JpL has it right.... When youre trying to make something you're not often very creative. Especially when you're trying to do something like a dance track that comes in a specific (x) nimutes at
bpm format.
Change your production method radically. That's always worked for me in the past. I'm getting interesting results now because I've shifted my focus from doing tracks to doing live electronic productions.
I don't want to talk too much about my new methods, because you tend to loose too much steam when you talk about it in detail. But believe me a radical shift in perspective is necesary every now and again. You must be making something dynamic that you would want to hear.
I'm just coming out of a 3 month dry spell now. but I actually don't see it as a dry spell anymore (having been there MANY times before). I learnt a lot more about music and built a whole bunch of new tools that I'm starting to apply now. Even though I never finshed actual tracks, It's set me up for something new and interesting, so follow JpL's advice and just spend the time working on the technical side of music production, or learning to play an instrument, or improving just a small portion of your production at a time (like writing melodies, or just working on bass sounds, or only working with tribal percussion, etc.)
You also have to understand that you're always going to experience dips in the physical product that you're producing. I know you get moments where you feel bulletproof and you feel like you're never going to come down from a creative high, but it cannot last forever. Coming down from that is natural. Wrestling with yourself to find a new inspiring spark is part of the creative process, because we're trying to make something beyond simple background noise and if you don't find it difficult at times you're not pushing your creativity hard enough, and not striving for something better.
Difficult times are sacred in all art, it enhances the extacy of completing something you know is good.