Chicago is a city in the state of Illinois.
Idaho and New Mexico are both U.S. states (43rd and 47th admitted).
Simple test: if it has a capital city, it's a state. Chicago's capital is Springfield (Illinois).