The Lens Had a Mind of Its Own

Roadtrip this past weekend w friends, tried a new to me lens, what a mess. nOverdeveloped XX and a lens that literally has a mind of its own. I was given a 35-105 Nikkor that seems to just focus where it wants. Anything close or usin the macro function is in focus, regardless of what I set it to, everything else, esp infinity, a blur, even at f/16.