We have to know that benzamide is less easily hydrolysed than methyl benzoate.
The reason is oxygen atom is more electronegative than nitrogen atom and oxygen atom donates electron more readily than nitrogen.
During hydrolysis, OH⁻ attacks to carbonyl carbon of both methyl benzoate and benzamide. Nitrogen can donate its pair of electrons more readily than oxygen due to its low electronegativity.
So, in benzamide resonance takes place easily because of which double bond character or nucelophilicity of carbonyl carbon atom reduces. But in methyl benzoate, the resonanting structure is less contributing.
Hence, OH⁻ can attack readily to methyl benzoate than benzamide. Therefore, benzamide is less easily hydrolysed than methyl benzoate.