I can understand this. It is difficult depending on the situation. If it is a good break / vacation, it might be easier. If the break is due to a bad reason - personal problems, etc, it is even harder.
Way back in 2006, I was stuck in a rut. I did not enjoy what I was doing. And I had frequent breaks from work. The next year, I took a job as a project manager. So, between 2007 and 2010, I worked as a project manager. Then realised, being a project manager was a poor way to enjoy what I once loved doing -- coding.
So, I took a break in my career. Between 2010 and 2011, I stayed back at home. Did various programming chores. Learnt a bit more of .NET technologies and some JavaScript. And after that, got a job in Microsoft as a consultant. Since 2011, I have been enjoying what I love doing ... coding.
One way to stay good after a break, is to have some sort of commitment towards coding (or whatever you love doing) apart from general well-being.