Aniline is weaker base than ammonium chloride. In NH4Cl or aliphatic amines, the non-bonding electron pair of N is localized and is fully available for coordination with a proton
On the other hand, in aniline and other aromatic amines, the non-bonding electron pair is delocalised into benzene ring by resonance
But anilinium ion is less resonance stabilised than aniline