A strong earthquake rocked much of southern Mexico and Central America on Monday, setting off mudslides, damaging scores of buildings and disrupting communications vital to the relief effort.