Joining a writing forum, where you are surrounded by others writers, could help you get motivated to write. Also, having a writing app. on your phone can help you write regardless of distraction. Switching to handwriting instead of keyboard typing is another way to be away of electronic distraction and have a free handwriting. Try to write at your beat time. For me, I love to write at night, even I get disrupted, writing at your best time helps keeping you write despite of how disrupted you get.