Answer
As shown by the resonance forms, the nitrogen atom of the amide can carry a positive charge, which makes it more acidic (or less basic).
Work Step by Step
The amine doesn't have a resonance that makes the nitrogen atom in it carry a positive charge so it is more basic than that of amide.