The increasing order of their basic strength is C6H5NH2<NH3<C2H5NH2
In aniline, the lone pair of electrons on N atom is involved in resonance with benzene ring. Hence, it is less available for donation to suitable lewis acid. Hence, aniline is less basic than ammonia.
In ethyl amine, the ethyl group has +I effect. It increases electron density on N atom. Hence, N can easily donate its lone pair of electrons to suitable lewis acid. Hence, ethyl amine is more basic than ammonia.