Pyrrole is least basic because lone pair is involved in aromaticity. The lone pair of electrons in aniline is involved in resonance. N in pyridine is sp2 hybridized whereas for benzylamine it is sp3 hybridized.
So, the order for basicity follows as:
Pyrrole<aniline<pyridine<benzylamine