My guess is close to Carl's, Black and Red are usually hot legs. Blue is odd, could it be Green? Make model of the new motor? Pictures?

Best advice I can give: hire a qualified , licensed electrician with pool experience.