A quartz crystal's frequency is determined by its precise physical dimensions. When a voltage is applied to it, the crystal will bend at its resonant frequency. The oscillations would normally decay and eventually cease due to internal losses within the crystal.