(a) Galena is a semiconductor, and the contact between the fine metal point and the galena crystal conducts much more easily in one direction than in the other. It therefore behaves as a rectifier, like a junction diode: it passes one half of each cycle of the alternating radio signal and largely blocks the other half.
(b) The radio-frequency current alternates many times in each millisecond, and it pushes the earphone diaphragm one way in one half-cycle and the other way in the next. Over each cycle the average push is zero, and in any case the diaphragm cannot follow such rapid changes, so a contact that conducts equally both ways gives no sound. When one half-cycle is removed, the current flows in one direction only. Its average no longer cancels, and this average follows the slow changes in strength of the signal that carry the sound, so the earphone reproduces the sound.