Draft gear is used to attach carts together. Its called stake In NEI.
Clicking on a cart or locomotive with a stake in your hand will activate "attach mode"
When two carts attaching they will collide and stay attached.
You can always reset the draft gear if anything went wrong. You need click a few times with the stake.