<p>I just bought new TEVO Tarantula and tried to print xyz cube. I found that my cube's layer was shifted as showed in picture. How can I fix this ?</p>

<p><a href="https://i.stack.imgur.com/u53fC.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/u53fC.jpg" alt="enter image description here"></a></p>

From an electrical standpoint, a two-phase stepper motors (what most 3D printers use) works the same backwards and forwards, the phase just reverses.  If you are stalling on only one direction, I would look to see if you have a mechanical bind in that direction.  Generally a wiring issue will cause the motor to either not run at all or to run in the wrong direction.
A few things you can check:
Decouple the motors from their mechanical load and confirm that they all run correctly when they aren't driving a load.  If you can't do that, disconnect them all then connect a spare motor to each cable one-at-a-time.
Turn each of the axis with your hand and make sure it turns smoothly throughout the entire range in both directions.  Note: Some times a binding issue is acceleration related - a loose frame or coupling can cause this.
Monitor the supply voltage to make sure that one of the motors is not pulling the supply down causing all the others to stall.