When I get odd things going on like that I head to the factory reset or reset (different cameras name this differently) so I'm sure the settings in the camera are stock. After the reset I try again.

There is a thing about auto focus that needs to be written here. It takes some light to accomplish auto focus. Be sure it's not a dark night scene.