Next time you feel the urge to check your messages, pause and examine the feeling. Acknowledge it. Then ignore it. Practice ignoring distractions. It is a far more powerful technique than trying to will yourself to not feel those distractions in the first place.