Intestinal worms can be caused by consuming contaminated food or water, poor hygiene practices, and exposure to infected soil or feces. Eating raw or undercooked meat and fish can also lead to worm infections.