Welcome to NikonForums.com
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
It seems like either dirty contacts or something broken in the lens. Try cleaning the contacts with a good contact cleaner, such as DeOxit. Try to get one that is formulated for plated contacts. If that doesn't work, getting a new normal zoom is probably cheaper than having your basic kit lens repaired.
The lack of manual focus when the electrics don't work is a major drawback of the AF-P lenses. As long as things work, they are better than the AF-S equivalents, but there is no backup system if things go wrong.