Once spokes start breaking then yes it needs a rebuild and best to start from scratch, I have already posted on the rims I use that I am happy with and don't have issues.
One has to buy a rim with the same spoke hole count as the motor , so if your motor is 32h then you need a 32h rim , if 36h...