When you pet a dog, your nerves send a signal to your brain of the soft, silky, warm fur of the dog. Your brain sends a signal back telling your arm to move up and down the dog. Your nerves feel the warmness and softness of his fur and send it to the brain. The brain relates this to other things and secretes hormones through glands which shows the pleasure.