Your heat was either too high or too low. If the heat is too low, the batter will soak up the butter or oil in the pan. If the heat is too high, the pancakes will cook on the outside but remain somewhat raw in the middle.