Piezoelectricity works the other too: if you feed it a voltage, the crystal deforms. This is the principle that lets quartz watches keep time so well.