A study is made of the operation of the electron cyclotron resonance maser (ECRM), when subjected to an external rf signal. The signal is introduced both via direct injection through a coupling hole in the oscillator and by modulating the electron beam in separate cavities, upstream of the oscillator. Experiments using both one and two ``prebunching'' cavities are reported. It is experimentally found that the gyromonotron, a specific embodiment of the ECRM, can be phase locked by premodulating the electron beam at drive power levels more than two orders of magnitude below that predicted by Adler's widely applicable theory for single-cavity oscillators. A perturbation theory is used to predict the phase-locking frequency band for a gyromonotron with any number of prebunching cavities. The predictions of this theory agree with the experimental results for two- and three-cavity phase locking. An investigation is made into the general amplitude and frequency response of the ECRM to an applied external signal. Experimentally, three distinct regions of qualitatively different ECRM behavior are noted: soft excitation, which is free, self-excited oscillation; hard excitation, where the oscillation requires an external impulse for startup; and amplifier, in which the output power level and frequency are linearly related to the drive in the small-signal regime.