Read inspiring and motivating stories about people who achieved success. This will inspire and motivate you, as well as show you what they actually did, so you can implement it in your life.
Use affirmations. These positive statements will sink into your subconscious mind, which in turn will guide, motivate, and inspire you to tale action.
This also applies to visualization, the creation of mental scenes of what you want to achieve or have.
You don't have to allow negative thoughts to thrive in your mind. You can put an end to this habit. Be on guard to replace you negative thoughts with constructive ones. Start paying attention to your thoughts, and as negative thoughts start circulating in your mind, calmly, and without using force, replace them with constructive, happy and positive thoughts.
You can make great changes in your life if you play the role of the doorkeeper of your mind.
Take action, don't be passive, in small matters and in big ones. If you keep busy doing things, there will be less likelihood of becoming negative, and a greater likelihood of being positive.
Explore this website, and you will find articles guidance and books about this subject.