1) I have lived in the USA for two years. (this means that you either moved to the US two years ago and still live there or you used to live there for two years; further context is needed to resolve the ambiguity) 2) I had lived in the USA for two years. (this requires a past, reference point of time.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.