The cow ran into the fence and it got hurt.

Who is it referring to?
The cow