This Demonstration shows the relation of position, velocity, acceleration, potential energy, and kinetic energy with the different parameters that can be set for a harmonically oscillating system.
See several similar contributions in Demonstrations by entering, for example: simple harmonic motion, oscillator, Hooke's law, etc. in the "Search" box.