Hesiod explains Pandora's connection with the origin of human troubles in Works and Days.
Works and Days is an early Greek didactic poem that combines mythology with practical advice about farming, justice, work, and social conduct. Its Pandora episode appears in an account of why humans must endure toil and suffering after Prometheus's conflict with Zeus. The vessel and the forces released from it belong to that wider explanation.
Hesiod also mentions Pandora in the Theogony, which is why the two poems are sometimes confused. Theogony focuses primarily on the origins and genealogy of the gods, while Works and Days gives the more developed account linking Pandora with the human condition. Both texts are important, but they serve different purposes.
The Iliad and the Odyssey are attributed to Homer and do not provide the specific Hesiodic account that made Pandora central to explanations of human hardship. Later writers, artists, and translators expanded the story, but Works and Days remains the key early literary source for the familiar narrative.