What is a pulsar?

Gravity and radiation keep stars in balance. But when they run out of energy, they collapse in on themselves. What happens next depends on how much mass they have.