The US was trying to follow the "Policy of Containment", in which they try to contain or even push back the spread of Communism. This is the main reason, for South Vietnam did not have:
#1: a good reason for war
#2: No good military defense or offense area.
#3: no good support from the public
#3 is the largest reason that the US lost, for the US usually only won when they had wide-spread support from it's people.
hope this helps