This question already has an answer here:
They say that we are living here on Earth where we are sent by God and are observed. If we do good deeds, we acquire punya. If we do bad deeds, we acquire paapa. After death, We are sent to Naraka(Hell) to get punished for our paapa and are sent to Swarga(Heaven) to enjoy the fruits of our punya.
But after that we are sent back to Earth again and again until the said soul attains Moksha and are sent to Vaikunta or Kailasa or elsewhere where it is the true destination place. Here we truly enjoy.
My question is that If we were to remember the pain and punishment from our previous visits to Naraka, wouldn't it be a guideline to us to learn from our previous experiences and work towards attaining moksha. The Earth would be a better place.