The space marines killed the aliens because they were a threat.

Who is "they" in this prior sentence?
the aliens
Mary stabbed Jennifer, so John reported her to the police.

Who is "her" in this prior sentence?
Mary
We gave the toys to the toddlers, because they were unopened.

Who is "they" in this prior sentence?
the toys