took the black box off and the motor is fine,fiddled around with the wires,shut the tailgate and it was working fine.Then put the black box back on tried again and nothing.Think there must be a loose connection.Got a day off work tomorrow so will have another go again.Cheers for your help.