Understand sometimes motivation is lost due to low level of dopamine feedback loop.
I tried to motivate myself by thinking about negative scenarios like loss of job due to low performance etc...but it made motivation worse.
You can take DRIs like Modanifil or Armodanifil to setup a stronger Dopamine feedback loop.
Some people have this naturally so they are lot more driven, focused and motivation..
Some people suffer from low level of these due to lifestyle, diet or genetic reasons.
So far it has helped me, some day I work 20hours+ and don't feel drag.