Dioxygen is a gas at room temperature. It forms diatomic molecule O2 due to its ability to form stable pπ−pπ multiple bond.
Sulphur is a solid at room temperature. It forms staggered 8-atom rings or zig - zag chains due to its inability to form stable pπ−pπ multiple bond because of large atomic size.