I had the same issues when I was just starting out and basically it came down to finding the right position and environment. There are many factors that can affect our outlook on our job and in the world today there are even more distractions. Make sure you are doing what you love first of all. If you don't have a passion for it then you will always be looking for a new path. Build relationships and network. This will engage you. I hope this helps.
First of all, ensure you are at your best. Are you exercising, meditating/praying, eating well, expressing gratitude? All of your life pillars should be in place and balanced.
Secondly, understand the value of what you are doing? How does your role contribute to the big picture? For example, if you work in the health profession, your role contributes to "patient wellness". If you are in insurance, your role contributes to people or a family's "security".
Establish positive work relationships including and possibly most especially with your manager. View as a "mutual partnership" rather than a boss/subordinate situation. Or worse yet, a parent/child relationship.
You may also want to have a buddy at work who is on the same page -- can provide advice, is trustworthy and has a sense of humor.
I found that reminding myself of why I was doing what I was doing was helpful! For example, let's say you take a job as a custodian at a hospital because they have an excellent tuition reimbursement program, and you are going to college. This particular job doesn't define who you are, and, all work is honorable work. Yet your friends are teasing you about it, or you just feel you are "better" than this. Sure. But why are you there? You will get your degree for thousands of dollars less than your friends are paying! And, if you want to stay in healthcare, you already have your foot in the door. Get that degree, and then apply for other jobs there at the hospital. It's just a stepping stone.
But, even though it's just a stepping stone, these supervisors are your references for your next job! So, do it well, have good attendance, and a good attitude!
Sometimes there is a more pressing goal of being motivated to go to work today. I would say that you should have techniques for how to give yourself positive vibes about doing your work. Remember why you love your job. Turn on some upbeat music to lift your spirits. Interact with someone at work who you consider positive to help you remember why you are there.
When you watch motivational videos and read self help books they may only give you a temporary boost. When you are thinking from the meta-cognition level it will drive you everyday because it creates a sense of purpose for yourself and provides you with general direction, like a compass.
The best way to manage a attitude and mindset is one ACTION at a time. Break down the big goals into little actions that will help build your mental disposition and confidence in yourself. Wake up, make your bed, bring order to your life. Once you have order you can think clearly. Ask yourself everyday, what do I need to do today to get to where I want to be? Then execute on those daily goals. Life is much longer than you expect and much slower than you may think. If you do something each day it will add up exponentially over time.
Believe in yourself, believe in the power of positivity, and follow your ambition.