Welcome to TFP!
I suspect you are mixing up grounding and bonding. The pump must be grounded, while bonding requirements for above ground pools vary from place to place, though usually a 24' pool does need to be bonded.
For grounding, there should be a ground wire coming to the pump along with the power wires, which gets connected to the ground lug inside the pump (right next to the power connections).
For bonding, there should be a bonding lug on the outside of the pump that gets connected to the bonding wire. Bonding connects all metal objects that either contact the water or are within 3' of the edge of the pool. This connection keeps everything at the same electrical potential so that no one can get shocked while in the pool. The bonding wire should connect to the pump, heater, any metal in the frame of the pool, and run in a loop all the way around the outside of the pool.
As I said, bonding requirements for above ground pools vary somewhat from place to place. If there was a bonding wire on the old pool, you should be able to simply hook it up in the same way to the new pool. If there was not previously a bonding wire, you should probably hire someone familiar with the local requirements to install one.