why do some diets just click?

I have been trying to lose weight for years I was over 500. I kept falling off the plan then this year I decided to limit my calories and all the sudden I am 6 moths in and 125 pounds down. Why ? I have wanted to before but it didn't stick I cant figure out what is different. I did start a food diary but other than that no big change.