Dynamics and statistical mechanics of a one-dimensional model Hamiltonian for structural phase transitions