The correct option is B NH3<CH3NH2<(CH3)2NH
In general, amines are more basic than ammonia.
Reason : The alkyl groups donate electrons to the nitrogen atom by +I effect
Among the amines, secondary amines are more basic than primary amines.
Reason : In secondary amines there are more alkyl groups so there is more electron density on the nitrogen atom as compared to the primary amine.
So, B is the correct answer.