More info is needed but it sounds like a cap start split-phase motor. If it is in fact a split-phase motor, one of the two windings is the start and the other is the run. If it's single phase, Line would probably go to A1 and one lead of the cap, the second lead of the cap would go to L2, and Neutral would go to A2+L1. Is there any nameplate info available like voltage, motor type, manufacturer etc?
+1
I have wired up single phase pumps like this.
However it could be either
Permanent-split capacitor motor or a Capacitor-start induction motor
Live to A1 A2 to Cap Cap to Neutral "or Starting switch then to Neutral"
Live to L1 L2 to Neutral
The capacitor changes the phase angle relationship between current and voltage this causes the motor to only spin in the correct direction.
Is that all the terminals on the motor or are they just the ones you dont know how to connect