.
Presumably the 'N' terminal has 3 wires connected to it. Yes / No.? (bit misleading as N normally denotes neutral. but in this case they have probably used a universal connection plate)
If so you need to disconnect and separate those three wires on the N terminal. You will then ideally need a Megger / insulation tester. If you have not got one a continuity tester of some form will do. – Just to be on the safe side of caution don't use a high voltage insulation tester with the inverter connected. Probably be OK but some electronics don't like voltage shoved the wrong way up their chuffer.!
What you need then to do with the tester is identify the other end of the windings for A, B & C ( given depending on maker any designation but usually U, V, W, or X, Y, Z. with a 1 or 2 after the letter. Does't matter really it's just a way of ID-ing them.)
Once you have the winding pairs connect as follows. :-

What you have ATM is the star connection with the N being the common bond of W2, U2, V2
Nick