What is inside a pacemaker?

A pacemaker contains a battery, capacitor (the component that stores and delivers charges) and electronics that control pacemaker operation.