Intellectual disability
Some childhood illnesses, like measles and whooping cough, can cause intellectual disability if not treated properly.  So can infections that affect the brain, like meningitis and viral encephalitis.