There are several ways through which you can break a bad habit. Some of the common ways include committing to a goal, making a plan, being patient, starting with smaller targets, rewarding yourself, etc.