This may be controversial, but I believe when we struggle in our personal lives, we tend to struggle in our professional lives too. And when we struggle at work, we often struggle at home too.
The key to untangling then becomes self-reflection: When you are facing continued challenges in the office, perhaps feeling unmotivated about the work, under-appreciated by your boss, or unmoored by your choice of career, ask yourself first: how am I doing personally? How are my relationships with the people who matter most to me, starting with myself and family?
I'd guess half the time that people voice frustration about their work, they are actually facing something far more acute at home. But they focus instead on what they perceive as more tractable or more convenient problems to solve in the office, and miss the real source of their malaise.