Resonance and phase-locking in excitable systems