When I first started my job, a more experienced colleague advised me: “Think in terms of problems”. Whenever assigned a task, ask yourself: what am I trying to solve? Or what problem are you trying to solve?
When I get stuck, I always find myself asking myself the same question.