Stage 3: Post Main Sequence Stellar Evolution
It may so happen that one day, the hydrogen fuel in the core will get exhausted, which will signify the end of main sequence. As fusion in stellar core stops, the thermal pressure can no longer stop the gravitational crunch and the stellar core gets compressed under it, heating up again.