How does a compressed spring can do work?

↳Redirected from "Why is enthalpy a state function?"