Your Mac will just continue to heat up if your fans cease functioning altogether. It will eventually turn off by itself to prevent components from being irreversibly harmed. If the vents on your Mac are obstructed, this may also take place.