First make sure that you are not inadvertently pressing the lens release button on the front of the camera and that the lens is locked in the mount. Then clean the electrical contacts on the battery and the body as well as the electrical contacts on the lens and body. Good Luck and Enjoy your Nikons!
Nikonians®, NikoScope® and NikoniansAcademy™ are trademarks owned by Nikonians.org.
Nikon®, Nikonos® and Nikkor® are registered trademarks of Nikon Corporation.