What makes a nicotine substitute effective?

What makes a nicotine substitute effective?