One very effective way is to have contact with the pious lovers of Allah.. someone who when you see you are reminded of Allah, someone who when they talk to you or even write to you, you feel like doing more, becoming better, leaving sins, and loving Allah Ta'aala and His Rasool more than you ever had.