Compound A is benzyl alcohol because it liberates hydrogen gas with sodium metal.
Also, benzyl alcohol do not dissolve in sodium hydroxide. Compound B is cresol as it liberates hydrogen gas with sodium and further dissolves in sodium hydroxide.
Compound C is anisole (C7H8O) as it does not react with Na metal and NaOH.