I don't have any deep insight into the American education system. So I'm making a bit of a guess and assuming that, like other capitalist-oriented western democracies, the current state is the result of decades of underfunding, overzealous application of standardised testing, industry and other lobbying, poor working conditions, etc.
With that out of the way...
Carrot or stick. School is already all stick all the time.
Right now, some students feel that some of their time is better spent on their phones than paying attention to the teacher.
Why that is doesn't seem to be a significant part of the conversation.
Properly fund public, free for everyone education. Pay teachers more.
Make school good for kids instead of trying to force kids to be good for school.
> some students feel that some of their time is better spent on their phones than paying attention to the teacher
And kids feel that eating donuts is better than vegetables.
Or that drinking soda is better than water.
The fact that students feel something easy (not just easy, but something that is designed by tens of thousands of the smartest people in the world to be addictive) is more attractive than something hard says almost nothing that isn't a tautology.
With that out of the way...
Carrot or stick. School is already all stick all the time. Right now, some students feel that some of their time is better spent on their phones than paying attention to the teacher. Why that is doesn't seem to be a significant part of the conversation.
Properly fund public, free for everyone education. Pay teachers more. Make school good for kids instead of trying to force kids to be good for school.