To Him Who Overcomes

We are told to overcome and to move sin from our life. However, what are the steps that a person should take to overcome a bad habit or a sin?