Organisms that eat both plants and animals are called omnivores.
Here are some examples:
Humans
Bears
Pigs
Raccoons
Rats
Opossums
Chickens
Squirrels
Crows
Many species of fish
Omnivores play an important role in the ecosystem by helping to control populations of both plants and animals.