Temp sender

Tested my temp sender by running a jumper wire from the connecter to the negative terminal and it read hot my question is is this the part I need( looks right) but also if it's just all metal which is what it looks like how would it even go bad?

Tested my temp sender by running a jumper wire from the connecter to the negative terminal and it read hot my question is is this the part I need( looks right) but also if it's just all metal which is what it looks like how would it even go bad?