In regards to basic motion, the total energy is simply the sum of potential energy and kinetic energy. Potential energy is dependent with position.
Going up:
Potential energy increases, Kinetic energy decreases, Total energy is constant
Going down:
Potential energy decreases, Kinetic energy increases, Total energy is constant