I have the following setup

Board : GT2560 (also tryed with ramps, but the same)

Drivers:

DRV8825 for x, y, and z axis

A4988 for the extruder

Firmware Marlin and repetier

Everything is working fine until i star printing, after a few layers (usualy 3 or 4 layers) the x axis just stops, and even if i reset the board wont move.

The only way it gets working agains is if i unplug everything and start over.

Checked voltage on the drivers and endstops and it seams ok just before starting to print.

Can someone give me a hand please?

Could it be a bad wiring connection in the harness? Since messing with the connector seems to remedy it for a while…

Maybe there is a problem with the connectors, as MrDoggss said.
As the issue persists between resets and even firmwares, it almost certainly is a hardware issue.

What you might want to look out for:

  • Is the motor making any noise at all, or does it just stop alltogether?
    • Is there any torque on the motor, or does it vibrate? If there still is torque but it just doesn’t move, then there is a connection problem for the STEP signal on your board. If it vibrates, the driver is bust (unlikely since it still somewhat works). If the motor just completely stops doing anything, then maybe the driver is overheating and shutting down.
  • Can you move the X-Axis by hand once the motor is stopped? Maybe there is a mechanical problem with the bearings that blocks them up completely.

Try cleaning the metal contacts between motor and driver, and maybe also check and experiment with the cables, if some configuration causes the motor to stop.
Check for how the wire feels if you bend it, if there are hot spots, or if either motor or driver get very warm.

If your issue is none of the above - I have no clue what could be going on, sadly.