It was in AF-C. Very strange, I turned camera off for a while, turned on, and it started working. Changed no settings. I sent camera to Nikon a few months ago because screens were disappearing, and they said camera had no problems. I think they missed something.
Thanks.