When a spring is compressed the energy changes from kinetic to potential which best describes what is causing the change

A. Work

B. power

C. Gravitational energy

D. Chemical energy