The sentence that is an example of a metaphor is: "Time is a thief that steals our moments."
This sentence describes time as a thief, comparing it to something that takes away moments without using "like" or "as," which is characteristic of a metaphor. The other sentences provide examples of personification or simile.