Why is aniline more basic than pyrrole?
There would be no aromaticity in pyrrole after protonation since there is no lone pair to allow for Hückel's rule for aromaticity (the $4n+2$ rule). So, upon protonation, you are destroying aromaticity in pyrrole. Also the lone pair is completely delocalised in pyrrole and it cannot easily participate as a base.
However, in aniline, there is a partial loss of the lone pair due to resonance but the lone pair of nitrogen is still available for protonation. Aromaticity is not lost in the resonance structures of aniline.
Therefore aniline is more basic than pyrrole but is less basic compared to pyridine (where the lone pair is out of plane of resonance).