A mass on a horizontal spring

Consider a mass on a frictionless horizontal surface. Connect a spring to it and set the system into motion and it will oscillate back and forth. How can we fully describe the motion?