The lone pair of electrons on the amine are more available to accept a proton and act as a base. This is because in amides, the carbonyl (C=O) group is highly electronegative, so has a greater power to draw electrons towards it, making the lone pair of the amide nitrogen less availble to accept a proton.