Car dies why driving?

Ok so my buddy replaced my motor everything has been fine now all of a sudden it dies going down the road wont start for few min sometimes it acts lik

Ok so my buddy replaced my motor everything has been fine now all of a sudden it dies going down the road won't start for few min sometimes it acts like battery is dead jump it and it fires up but other times it will turn over and over just not start for several min I'm confused Is it battery or connection issue also at times I'll get in car to go to work and battery acts dead and clicks I turn the keys halfway like almost not turning key completly forward and it will start just slowing turn over anyone know what this might be

or:Ok so my buddy replaced my motor everything has been fine now all of a sudden it dies going down the road won't start for few min sometimes it acts like battery is dead jump it and it fires up but other times it will turn over and over just not start for several min I'm confused Is it battery or connection issue also at times I'll get in car to go to work and battery acts dead and clicks I turn the keys halfway like almost not turning key completly forward and it will start just slowing turn over anyone know what this might be

Tags:everything,