They are worms,actually in the flatworms group.
They are parasites which means they go infect other organisms which you can get them by eating things that are not cooked well like meat that is red when you bite of it or even the kind of water you drink.
For more help ask the question what are parasites trust me it will be of good help.