The reason they are in different states at room temperature is that they have different melting and boiling points. As you go down group 7, the atoms (and thus molecules) get larger. This means there will be more intermolecular forces, and so more energy (and a higher temperature) will be required to break them.