Everyone gets distracted at times.
Create rules for positive procrastination.
Rather than wasting time on social media, read a book, call a friend or do something you enjoy doing.