Temptations like fast food or sleeping in are hard to avoid. By learning how to gain self-discipline, you'll develop healthier habits.