Honestly, it's probably just plain old behavior management, coupled with a extra energy, and totoo much stimulation.
I see this a lot. It really breaks down to three steps.
Limit and burn off energy. Stay away from all sugars (fruits and fruit juices can be VERY high in sugar. Some times you might as well be feeding your kid a cup of sugar directly. It's a different kind of sugar, but it's easy to think were making the right choices as parents because we choose apple sauce and OJ, when in fact they are a source of sugar too). With energy limited (don't go over board, but carbs, sugars and other energy sources should be limited some), then look to burn off extra energy. Running, playing, exercise (depending on interests) early in the day can really help. You don't want the child to be tired, that won't work well, but you don't want them bouncing off the walls.
Set realistic expectation and stick with them like a rock. Every kid is different, but the general idea of "If you do X, Y will happen" should be said about 1,000 times a day. It should be for both good and bad behaviors. "If you hit the dog, you will have time out", is just as important as "if you finish coloring then we can watch a movie." The reward or punishment should be immediate. Again every kid is different but specially if there having problems, don't expect a long attention span. That 1-2-3 count, some kids will have a hard time at 3 remembering why your started 1. Make sure you always explain the reward or punishment. "Well you finished coloring, so what movie do you want to watch."
Limit external stimulus. This is a big one. If the child is having a hard time focusing, then reduce what they need to focus on (count not difficulty). One trick I use is to focus on a single complicated task instead of several small tasks. But part of reducing external distractions is to actually remove them. A quite room, with no toys, and tablets, no computers, and just a simple table, chairs, and coloring book. Well the kid will color that's for sure. If too many crayons is a problem then go with an 8 pack instead of a 64 pack. If the coloring book is the issue then go with a single page and not a book. Again, every kid is going to be different, but turning off the T.V., limiting music, etc. Almost always works. You need to combat boredom though. So focus on your task. If your coloring, then ask why they are coloring the grass green. Have them make up a story, etc.
Bonus Points: Engagement, I see this mistake a lot, so I though I would mention it. Kids are not going to listen to you if your not engaged with them. Because their concepts are so simple we often drop down to auto pilot. Specially when your having problems like this, make sure not to do that too much. Always ask your kid why, how, and all that. Make them think. They need to be engaged. "Here's a sandwich, do you know where cheese comes from? What about the ham? Do you know how they make mustard? I bet we can try to make our own bread." I know it can seem very dull and repetitive to go though something like that every time you make a sandwich, but it works.