The leads go from the pulse generator to the heart muscle through blood vessels. They have 2 functions:  They sense how fast the heart is beating and send the information to the pulse generator.