Being able to focus is not something you can fix with software.
There are lots of techniques from the world of ADHD therapy. One of them is to make a schedule, so that you always know what you should be working on for any given chunk of time.
Often, there are underlying issues like anxiety that will cause people to be unable to focus. You just have to figure out what it is for you. It might just be that you need to practice it, which is increasingly common in a world of instantaneous, bite-sized entertainment.