In cyclohexanamine, the lone electron pair of nitrogen is easily available because there is no resonance in it, whereas in benzenamine (aniline), the lone electrons pair of nitrogen is not easily available due to resonance, hence cyclohexanamine is more basic than aniline.