If enough men are thrown against the phalanx no amount of pikes will stop them, some will slip through and force some of your men to raise their pikes and so allow a few more to slip through.