I hope you have tested the battery voltage and found it above 12.5 v and tested it during cranking . above 12.5v .
You can test the starter on the bike by running a jumper lead from the spade terminal on the solenoid to the large terminal of the solenoid . If the battery and everything else is good , it should crank . If it does , your problem is in the bike's wiring.
P.S. hitting on a permanent magnet starter will give you bad results . The magnets will come loose or break . When you have more than two segments in the starter case , you have trouble .