Dear student,
Melting a sugar cube is a physical change because the substance is still sugar.
But Burning a sugar cube is a chemical change.
Because Fire activates a chemical reaction between sugar and oxygen. The oxygen in the air reacts with the sugar and the chemical bonds are broken.
When sugar is heated energy is released in the form of smoke and black soot. Sugar consists of three elements i.e. oxygen hydrogen and carbon. When heated these atoms react with fire and get converted into liquid. Then these atoms gets combined with oxygen in the air and forms another group of atom.
Regards