Weren’t Pikes developed only in the high middle ages? The swiss were find of them.
Prior to that you are looking at shorter spears and various other polararms like a billhook. Halberds and Pikes were later developments.
In ancient times, the Greek hoplite was used (similar to a pike), but it was actually made obsolete by the Roman sword, the gladius, and shield wall.