There is one big relation to the temperature and states of matter. Certain temperatures will make an object a certain state. For example, we will use water. Let's use H2o for an example.
If water is freezing point (32 degrees Fahrenheit; 0 degrees Celsius) or under, it would be a liquid, which in this case would be ice. If it is between 33 Fahrenheit and its boiling point (212 degrees Fahrenheit; 100 degrees Celsius) it would be a liquid, like I said before, H2o (water). If it is above boiling point, then it would turn into a gas, which would be fire. Hope this helps you out.