These substances are called sublimatory substances and this process of conversion is known as sublimation.
The molecules of these substances are held together by weak force, even weaker than ice molecules. Therefore when heated in a crucible, instead of converting into liquid form, they directly evaporate without melting.

Sublimation: Sublimation is the phase transition of a substance directly from the solid to the gas phase without passing through the intermediate liquid phase.