2000 Ford Ranger - Dies When it Gets Hot

Have a 2000 Ford Ranger it runs good till it gets hot and it sounds like it’s flooded out then it dies have to wait to restart it

Odd, I would think you would have a check engine light.