Oscillations in a dynamical model of phase transitions