Then, it is your responsiblity to seek a medical attention. FYI, everyone goes through depressions in their life. It's not a specifically your problem. Finding it hard to do things that you enjoy is exactly one of the symptomps of depressions.
This.
Depression doesn't necessarily mean clinical depression, but it certainly can make the smallest task into a herculean effort.
I know I went through a very dark period, where I was working a job at a company that had gone through heavy ongoing headcount reductions, working for a bipolar boss to boot. I didn't realize how much of a fugue I was in at the time, but it was crippling, in my own time I accomplished almost nothing... I wasn't pleasant to be around, I was having minor health problems ( acid reflux, heartburn, indigestion, that kind of stuff ) and it was all linked to being trapped in that situation. To make matters worse, I had a child on the way so it wasn't exactly the best time for me to do anything about it. I almost literally accomplished nothing during this period, nor did almost any of my fellow co-workers.
Little things got me out of it... joining a gym and actually exercising, eating better, taking a few supplements ( Vitamin B and Ginseng if you care ) and things were night and day better. Once I started feeling better, I realized how much it was my environment that was dragging me down and shortly after my daughter was born, I took a massive career change. ( Quit job and went self employed / full time dad ) My productivity tripled, even though my sleep and time available halved.
Do not underestimate how much being in a dark place can drag you down. It's certainly worth talking to a professional, especially if you can't identify the causes. As frankly, until you lick that problem, you will fight really hard to have any motivation.
My other piece of advice... turn off the internet. When I need to get stuff done, thats exactly what I do... grab my laptop, leave my phone ( so I cant tether ) at home, and bring a few dead tree books with me if I need reference materials. Without the distraction and sirens call of por... er... internet, you become way more productive.
I still work from home, and I will admit that its still a constant fight. Distractions are... everywhere.