AFAIK it was actually quite impossible for a block of phalangites to "change facing" to bring their pikes to bear against an enemy gnawing at the flank - ie. they had to drop pikes and pull sidearms to defend themselves, or get killed with impunity. And their backup gear and training wasn't quite the best around for regular hand-to-hand fighting...