How to use relay shield to control dc motor speed and direction?
Using a mechanical relay to control the speed is not a good idea. But you can control the directions.

I prefer you to use Solid state relays (SSR) to do this. Arrange 4 SSR as Hbridge and Use PWM to control the speed.

refer this 

or you can use the devices like this which has direction control as well.