You likely didn't cook them long enough. Bake the muffins until you can put a toothpick down the center of the largest muffin and it comes out clean (no batter on it). They should also spring back to the touch and not seem liquidy at all if you slightly move the pan left and right.