Its without an apostrophe means "belongs to it" like his means "belongs to him (neither has an apostrophe).
It's with an apostrophe is a contraction of "it is".
The dog was scratching its ear.
I wear a heavy coat when it's cold.
- For Teachers