The nicotine molecule is very similar in shape to the neurotransmitter acetylcholine, which affects many bodily functions, including breathing, heart rate, learning and memory. Acetylcholine in turn also affects other neurotransmitters that have influence over appetite, mood, and memory. When nicotine gets into the brain, it attaches to nerve cells in places where acetylcholine would, creating the same effects.
All About Nicotine Addiction
How Nicotine Works