Temp gauge sender unit should simply unscrew from the housing.......screw new one in.
Can't remember if its an o ring or washer, suspect o ring. Either way, ideally, you should replace.......however if its not damaged you'll probably get away with re-using.