Oxygen is smaller in size compared to sulphur. Oxygen exists as (O=O) with weak intermolecular forces of attraction whereas Sulphur exists in puckered structure, octatomic (S8) forming S-S bond with strong forces if attraction. Hence Oxygen exists as gases whereas Sulphur exists as solid.