As the marble goes down the ramp potential energy is being transformed to kinetic energy, as it goes up the kinetic energy is transformed back into potential. As it keeps going up and down the energy will keep going back and forth. Energy is neither created nor destroyed: states the Law of Conservation of Energy.