The most basic compound in aqueous solution is:
The combined effect of the pushing effect of the alkyl group (+I effect), steric hindrance and the solvation of amines causes the basicity order to be:
NH3<tertiary amine<primary amine<secondary amine.
HN(CH3)2 is secondary amine. So it is most basic.