I don't mean to come off as a dick, but switch projects. I procrastinated for a month straight on something, as soon as I dropped the project the code flowed.
Talk to a doctor, it seems like you suffer from something along the lines of ADD. I have a friend that drastically improved his condition through medication.