When you use the Workout app, Apple Watch measures your heart rate continuously during the workout and for 3 minutes after the workout ends to determine a workout recovery rate. If you don't see your heart rate, check your settings.
In addition, Apple Watch measures your heart rate throughout the day when you’re still, and periodically when you’re walking (Apple Watch Series 1 or later). Since Apple Watch takes these background readings based on your activity, the time between these measurements will vary.
You can also turn on heart rate notifications, so you know if your heart rate remains above or below a chosen beats per minute (BPM), or to occasionally check for an irregular heart rhythm.
For more info, see:
Monitor your heart rate with Apple Watch - Apple Support
The first (and simplest) thing to try if something isn’t working right is to restart your Apple Watch and its paired iPhone. If necessary (device not responding), try a forced restart. Both methods can be found here:
How to restart your Apple Watch - Apple Support
Restart your iPhone - Apple Support
If that doesn't help, the next steps would be to unpair and pair your watch again and restore from the backup just created. This should result in no loss of data. It deletes all temp and corrupted files and re-indexes the file system.
Unpair and erase your Apple Watch - Apple Support
Set up your Apple Watch - Apple Support