In Hesiod’s myth, Prometheus stole fire for humanity before Pandora appeared.
Prometheus was a Titan known for intelligence and foresight. Hesiod presents his conflict with Zeus through the division of an ox sacrifice and the later theft of fire. Prometheus concealed the stolen fire in a fennel stalk and brought it to humans, allowing them to use a power associated with the gods.
Zeus responded by ordering the creation of Pandora, whose arrival formed part of humanity’s punishment. The stories are therefore connected: Prometheus’s theft comes first, and Pandora’s creation follows as a divine response.
Later literature gives Prometheus a much larger role as humanity’s benefactor and sometimes as its creator. Those later traditions should not be confused with every detail in Hesiod, but the fire theft is the central link between Prometheus and the Pandora story.