If it is true that your controller (the drive) is a VFD (variable frequency drive) I am suprised the motor is still functional. A VFD is for AC motor use. You will need to varify that your drive is indeed a VFD and if so either replace the drive with an appropriate DC drive or replace the motor with an appropriate AC motor. If replacing the drive match the drive HP to the motor. or get an AC motor matched to the VFD HP.
For the AC outlet (I presume it is 115 volt operation): white to silver lug or screw, black to gold or dark, green to center or green. The black input wire is for AC potential (many call that 'HOT'), the white is return/neutral and the green is earth ground (the green is attached to any enclosure material that may be contacted by the operator - you. As with water, electricity seeks the path of least resistance. With the earth ground attached to any conductive enclosure you may come in contact with a greater percentage of current will flow to ground instead of through you should a short to encloser occur.
RL