Some hydrocarbon are gases because the structure of molecules are small , and their interaction is less among each other. And they tend to settle in gas phase . Some are liquid because the structure of molecules have bigger structure . And their interaction are more with each other and they tend to settle in liquid phase.