A good method to break bad habits is to make them unattractive.
Start repeating to yourself all the consequences that come from the bad habit.
For example, smoking does not relieve your nerves, it destroys them.
Reframe the cues.
For example, smoking is not about being social; you can be social without smoking.