The alkyl groups are electron releasing ( + I) groups, thus increase the electron density around the nitrogen thereby increasing the availability of the lone pair of electrons to proton or Lewis acid and making the amine more basic. Hence more the number of alkyl groups, more basic is the amine. Therefore, the correct order is NH3<CH3NH2<(CH3)2NH