I Have Lost Interest in Work

I lost my job due to non-performance. I am unable to focus on my work; repeatedly get distracted. How can I overcome this?