Habit is either the best of servants or the worst of masters.
We all have habits – both those that are good and bad. Those that are bad work against us, and we are literally slaves to them. If you have any habits that you do not want anymore, work to get rid of them! Enlist help. You do not need to and are not meant to fight these battles on your own. Use your friends, family, and bishop. They love and care for you and will help you.
One of the best ways to defeat a bad habit is to replace it with a good one. Whenever you’re itching to do whatever it is that you do not want to do, find something better to do instead. Read your scriptures! Recite memorized scriptures! Hum a hymn to yourself. Find someone to help. Remember, you need to keep yourself busy in order distract yourself from doing those things you don’t want to do. Pray for help, rely on your friends, and make those habits work for you rather than enslave you.