James Webb Space Telescope reveals how a cosmic ‘Phoenix’ cools off to birth stars