Referring to the random example circuit below, the neutral goes direct to the motor, typically blue (for your old motor?), and may be black on the new motor? (but don't know for sure)
Would be worth checking with a multimeter that you get similar increments of resistance from black to each of the other colours, and from this you could establish the order they go in (low, med, high).
If from black you get two similar resistance readings from different colours, black is not the neutral end, and you need to find which colour is!
There is a risk that if you don't get the right wire for the direct feed (N in the example), the fusible link won't always be in circuit, so you wouldn't have thermal protection of the motor, which could be a safety issue?
View attachment 93809