It's often difficult to maintain focus at work sometimes, I have the same, but I always work on removing distractions or minimising them. I tend to be very disciplined and that's served me well, although for sure there's times when focus slips and discipline follows.
All we can do is the best we can do however so many people don't try hard enough I think.