Effect of Temperature on State of Matter