If your iPhone camera is not working, start working through the usual troubleshooting tips, such as restarting the camera app, updating iOS ... get things moving. The icon to press to flip ...
One of them is macro mode, which has been around since the iPhone 13 Pro and Pro Max were introduced in 2021. It's one of those things you might not realize your iPhone camera app can do.