I take it that R=live, S = Neutral. Guessing that E = Earth - although it wasn't wired in my old box (Also found my spindle wasn't earthed to pin 4.)
I take it that U = pin 1 on the spindle, V = pin 2, and W = pin 3.
If you are using cy 4 core cable connect the green/yellow wire to the spindle earth. quite often the pin 4 is not connected to anywhere inside the spindle so check it with a meter to see if it is connect to the case.

re the U,V,W The spindle is 3 phase so they can be connected in any order BUT if you find the spindle in running backwards when forward is commanded then just swap any two of the U,V,W wires and it will run the opposite way.