When we lift an object up, we tranfer energy to it. We say that it gains gravitational potential energy.
The work done lifting an object up will be:
Work Done = Force × Distance
The force that moves when we lift an object is its weight. In that case:
Work Done = Energy Transferred = Weight × Distance