Pikes aren't as good as spears against other infantry, their main role is anti-cav. They can hold off infantry, but once the infantry reaches their main line they will be slowly beaten as they are outclassed in close combat.