Hi there ned131,
From the details you provided, we do not know what exactly is happening, but we'd like to help however we can. Let's start with confirming more details to better understand the issue, along with ruling out some general details:
- You mentioned that you saw a message regarding charging the battery, but what did it say?
- As this sounds like a notification you received, are you having issues opening other notifications from the Lock Screen?
- Sometimes unexpected behavior can be resolved with a restart: Restart your iPhone
- If you're using a compatible model, the latest version is iOS 16.2. You can verify this within Settings > General > About. In case you needed it, this link shows how to first back up, then Update your iPhone or iPad.
Cheers!