Usually the PCB is marked, likely they are obscured by the remaking part of the broken case or you will ned to follow the solder point traces to an identifier.
Black = Gnd
Red = 5v
White = speed signal so could be sp or s1
Not 100% as there isn't a std for the rx/tx , if you mange things and...