What is the relationship between a state and a counrty?

A state is a part of a country, similar to a county being a part of a state. Some countries do not have states, but have what are called provinces, which are essentially states.
There are different answers on this site, they can be found in response to questions like this that have been worded differently.