What are the ages that people can have pacemakers?

Any age. Pacemakers can be implanted at any age including the first few days of life. In babies and small children the wires from the pacemaker attach to the outside of the heart in contrast to most adults where the wires are passed through large veins to the inside of the heart.