Only acidic compounds react with sodium metal
Acetic acid, phenol and alcohol show acidic character, hence they react with sodium metal while ether is not acidic in nature, hence it does react with sodium metal ethanol2CH3COOH+2Na→sodium ethoxide2CH3COONa+H2 acetic acid2CH3COOH+2Na→sodium acetate2CH3COONa+H2 Phenol2C6H5OH+2Na→sodium phenoxide2C6H5ONa+H2 CH3—O—CH3+Na→ No reaction