Nothing can be as motivating as to actually write down what you want and what you’re going to do to achieve it. Writing in itself is an easy goal. You sit down, you write. Getting published is another story. It is a story that contains a lot of conflict and the resolution isn’t in sight for who knows how long.
Make a plan. That way you know you’re doing all you can and you actually get a clearer image of what you CAN do. Whether it’s attending writing courses, joining a writer’s website, collecting beta readers, creating deadlines for novels/revisions, writing down a list of agents you will query and when. All of it can help you stop feeling like you’re a leaf in the wind, no control over the direction in which you’re going. You are the writer, you have some control. In the meantime, enjoy the ride and celebrate every little victory.