How does the concept of eternal judgment relate to the idea of hell and punishment?

Eternal judgment and hell