it stalls when drove
This can be from loss of fuel or spark. May be from a failing engine sensor or damaged wiring. First thing to do would be to pull and check engine light trouble codes and go from there. You may post the trouble codes below in the comments for further information. The codes may indicate why the engine stalls when driven.