As Webster 1913 points out, a thermostat works because of "unequal expansion of different metals, liquids, or gases by heat". Your car's Thermostat is no different. It typically uses wax as the agent to operate the heat motor, or the part of the thermostat which converts heat into work - in this case, kinetic energy.


                                                                                                                                                                                                        
                                                                                 ..:::,71i;:;:,,.:,                                        .,,:7;;:;::::,:;,,,;,:,::,77;7i7;;:.                         
                                                                           77;,,.,;,:;,; ;,,.::;;;7;;:33;:,                       ..;,;;:;,,,,., ,....,,,,.,..,. .,. , , .,.::,7;;77:.                  
                                                                     :7;;,,.,;JKEXJSXXS2JJZBS2KJXZZSSZJi77:7i7,             .,::;,;,::,::;;;:7;;;7;;;77:;;;;;::;,,:;::::, . .. : ..,,,:77:              
                                                                 ::;::,  .;3Z1                     . ::132XX1ii71   ..:,,::ii;:7:7;:;,,:,,.. , : .  . .  . .,.,..;,,;,,,:;;7,,..,,.,.,,...;77           
                                                                 ::.:i,:1KH1    ,., ,                      .iJ1  12; ,77;7;::,,.. . . .   .  .  .. ,. ...,: .....  . ..,..,,:::.;,,..,...,.,.:7         
                                                             :JZggZ77,i12,1JS#B:i22gXXK@SKXiJX1;7              :1  11:      .               ..        ..   .. .....,... .  .,,.,....,.,.,.,.,..7:       
                                                           1J32.     :     SW#Bg..32ZJJ33JJJ@E#EKEBgXSXgKXSg#####W#   .:      ,,,;77i113JJ2133JJ331131iii77:::,,..  ,.,..,,  ...,,,.,,...,,.,...,:,     
                                                         ;J7              .7Z#@Z7 ,,3SKHHMWE@X117:;,:,i2XKKSXXS@@XM#2   , ,711177;,,,..               ...,,:;;:77;:,, ..,,,.,......,.,,.,..,,.,..,:,    
                                                        KS         ,;Z27     X#HgMMM#EZ;          . ,            1###W  KB                          .  .    ....,;:7:,,, ,,...,.,....,..:...,..,...::   
                                                      @X      XWKSK1X2EHW     2MW#X        ,;:7;..       .:7117;    2##MBJ2XJ,  ,;77i771ii7i;i77:;,:...  ,,    .,.   :,:....,,,............,..,......7  
                                                     J7       ZMgSX221i7:,:     :    ,,,,:;;:.                       7##EWZ;Jg7.   ,,,:.,,. ,:.::::;;77;7,,,,,........ ,..,....,...............,....,;  
                                                   :i      :  1iKS3JXJ3XZ2##HJ17#  ,.,:;,,             :12HWW#########WEE###172#X.    . ,,,,,.,.,, ..,.,,::;:,;;..,,.,...,,.,, ,,,.,...........,.. ...: 
                                                  ;E         Z, .,3,        ;SBM#  ,,,.        iSB@M####MWBHHBBB@MWEHEEEHEEM##KgZ Xi ..,,.,.,..,,:;,,  ..,..,,,, .............,...,..,.,.......,......:.
                                                 ;3      .  7;;i  JB@##E# :gEK3 S   .      7KBWWMEEEgg@HBHEWWWHWHEBHBH@B@B@gK@BM1 i32   :,,:,,,      :7.,..,,.,,,............ .,............ ...,.,....,
                                                ,,      .K ,X .;JXW#1   M#E3i . #     1@##############WEBEEEEHWWM##MMMMMWMMMWWBW#Z JJg7  ,,,,..7#g    :i    .....,..,...,..,.......,.....,......,..... ;
                                               .,        , 3   :@M3      @#KXXK2##    ZZJ37:i    .:i3W####WEBKSXZ13133J2Z2ZZXS@BWMW3 1@i    .:, 3##    .22 ..,.,.,...........,..,..,.,....,..,..,..... :
                                               .        , ,  :iKJ   ,:;.  @#KM##B####K                  32:,JSHEM################### 13g1         ;M#   1#:....,.........,.,..,.,..,......,.....,..... ,
                                             ..           1,7SHi  ;:,.     H##JSM#@,####;  M#ESXKi1113.  ##########WHH@@gBBWM##WE##; 17JHHX37. ,,   3##Mgi  ,..,..............,....,...., ,. ,..,..,. :7
                                             ,        :, JM,KJ  ::,     7;:Z#M   ;  ####  3#############H#SJZ23.       i;;::;1ZSEW#  173ZS@SJ1:,:,          ...,.............., ...,..,.,.,.., ,..... 2 
                                            :.        ,  JJ@2 ..      1E3 ; Wg E###W1E##K:    .i2KM####Eg##    JM###Z:;i11i,.    ,i 131JJSXXZi:;:,; .    ...,,............, .., ,..,...., . ,. ,... . E 
                                           ..        ..   iJ ,.    7JW#J  JW##Z  :K##@@    ,.       i7;:@M####X  ;i7###EK@M####### :1i1222ZZZJ77,,:.,.....,.........,.....;..., , ., ... ,.,: .... : ,3 
                                           ,         ,.  3J     .ZBE##i    K####,  ,  X1  ,7:,,  :.    #B@M#####1,X3S####@:32ggE# ,iJi3J22JJ217:,.,.....,...........,... ,, ...., ;,.......,. ;..    @  
                                          ..       .,,  ;1     S#E###,  ,      ,      ;KZ:;.:1;.,.   @##@@HEWE### 7@BEWHM#@,  72 .17iJXXZJ2221i,:.,,.................... ; ..,.,  ; .,...... ,.. :: 3B  
                                          .        ,:  7X   JW######      ###          .1BJ,  .;J; S###E@HHEM#### SM@HBEBM####K iM2J;JS2Z1JJ1177:; .......... ,....,... .,..,..  ;........, :,. ,3 K#   
                                          .       .,  #W  :##M#####   ,  JMg@   ,,...   .ZKgX,,1;,XMMWWWBH@K@###J #MEWWBHH###  ZEi,i1SZJJ31J3i,:;:.........,......,... ,:. .... :: ....... .,. .. ;#    
                                                  :  B#  ##M##MW##   ..  BEHJ    .  ,.    ;J:,     B@HggHBBKB### ##MZ1 JM##X  3;   iX2Ji3J1i;,:;.,: ,....... ......... .. ..., ,,.....,,, .:..;  1#     
                                       :;           E# X#####MEW#   .   Z#BZ   ...,.,..      @E     7@MWEEH###W2##2.  ;###   @3, ,ZZJ1JJ11131:;,., ....... .......... ,,...,,  ,........ .: .   iE2     
                                     ,ii7         Z##1W#M##MHHE##  3S   BB@S   ...       ;W##H@3    73EBWHM##KW#K    3##   1i   ,ZXii7:71i1;,,,,.,.....,..,,.... ,.. ,, ......:......,. :,...  ##,      
                                   ,7:;;i  ,     M#X##W##MWEEM#E#H ;   g#E@X          2#W@@KKB@## : .EKBE##EXEi    7##;  ;@   .3g711i;;:::;;:; .   ...,...... . ,,.... ,.,. ,,.......,.,...   ##,       
                                 :;:7;7;;,       g 7#M#MMWMMMEHB###3   SZ1:     .ZEE@KBg@BW#@@@BEX.  XS###KXJ    ,##:        .JJ2i;.,,:;71;:  ...  .........  ,i.. ,,. .,. ,,......,,..,..   ##         
                               :7;;:;;,,,;  .      #M#MWEM#WWEM################B@EE@B##SKH@#MgSBW#g@@###SJ    1M##X        :iJ17,,..,:,.::: . .   ..,,:,,,   7i.  :,.,;;. :,.....,:. ,,..  i##          
                             :;::;;;, :,,:  ..   .   #BMM#WEE###E,E, JHM#####WKK3,.. JM##BZXg@@gg####Ki,   7H##M         .;7i1; ,   .,,7;, ...  . ,,,,,:,...Z2  .i  ;,,  ;:..,.,:,. .. .  E#E           
                           ,7:;;::. ,,::,7,   .  ,2; #M#MWE####S @M 1#H2g#MMEHHKBg2iHS2Zi;i1,JW###EJ1, iJ@M##           :71i,       ,:;,   .   .,;,;,::, .;Xi  ,;  i7  ,;.. .,.,. ,,.,   ##g            
                         ,7,7;:;:.;,,, :,.:.  ..   #g##MEE####; 1#,.7##MJXEWMWEBgJ7, .  .;X###K   12gK@###,          ,,:::        :7;,,. .    ,:,::;,;, ;3K:  1. :2,  7:..,.,,,  ,,,   2##              
                       .;,;7:,:.,..;.: ,.,:.   .   #i##EM###K   #Z , H####BHEBB@XZi73XE##E3    g##J7  ;,         . ..,,,,.      ., ,;,,.    ::.:;,i;:,:3SJ  ,7  JJ. ,i,.,,.,,, ,:,,   ##g               
                      7,,;:,:,..,::,,, .,. ,:   .  E.@#####3  7J#1 37  iM##########Bg7   .X###K        :       ..,,,,,.        .,,:,.     ::7:i1;:7,;iZK,  7, 1X;  7;., ..;;  .,.   B##                 
                    :;,;;,,:,.,:,. : ..,,...i.     iK ####2  JBg#@  X12.    .i311ZXB2###WE2     ,,.7         .,,,,,.          ,,.7..    ,77;;;7:;i;72K1  ;7 ,SJ  ,i,,  ,:i:  ,,    ##@                  
                  .:,,:..:, ..,. ;,..,,..., .:      g,@##3  XEBJ##3    ,XBEM#####Z@g1.       ,.7      .   ,;7::,.           .17:.     ,:::7;;ii;77JXZ  ,1,,2X  .7:,  ,;77  ,,,   M##                    
                 ,:,:, ,;, .,,.,,, .,........;       SJ#B  ZH@g7E###Hgg@SZ7J33;         ...        .   .;7:: ..           . J:       ,::;,717;i7JSX   ;,.Jg7  ;7,  .711, .,,   g##7                     
                :,::: 7;.,.,:.,:.  ,....,.,...,       .#@ 1E@HK  M####MMEBBHX.   ,. J1.     ,1, .,  ;;7;,.   .        ., ;X3J: .  ,:731ii31;11JKJ   i372@2  ;7,: .1JJ,  ,:   :##2                       
              .;,,:..;.,..:: ,,  ,;, ....,..: :i        g###MH@7@###########HX   .      ,.77   ..,:7:,,,.,i,.   7,   . .:i1      7;ii,:;;i773Z2,  337JK2   7;.  iS2;  ,,   ,###                         
             7;.,;.,;,,..;; ,, .:;.....,,...,. 7S3:        1iZJ,KE3Z13             ,;;..,    ,,.7:.:,,,. ,   ,:;;            ,;JJi7:i11ii13SJ   71i2B3   i;:  iKZ:  .,.   ###                           
            ::.,;,::,, ,7, ,, .,;....,.,,:. ...  1:   .                        .:, .   ..,,,.,.,.,,... .            .     .,:77iiii1i7;iJXJ   111X@1  :377.,2@X;  .,,   ##M                             
          .i,,;;,,:,, .:: ;,..:7: ,.. ,,   .,,. .iZ31                 ..,..,,.,  .....,..,,.,,,,,,                      :7771i;ii17i71ZS7   3JJg@;  ,3i;.,JgX;   ;,   H##                               
         ,i, ;;.,;,,,.:; ,.. ,:. .,,. :,  .,. .. ,7i2XJi:,.          .....  .......,..,..,.,,..,                 .  .,;7;717;177;7:3J2:  ;JJ2KX,  :337,7Z@X,  ,,.   ###;                                
        .;, ;7..;,.,..;.,:.,.::....,..:.  ,:.,.....7,;13JJJ323177;;,7:,,.,.,,,,.,,,:,,:,:,.                       ;:7777771777i7i2XJ   7JJ2KZ.  7J17,;2g2   ::.   ###                                   
       ,3, :i:,;,.,.,i. ;.., ;  .....,: ,;7..,.  .  .:.,,::; :,,:,::.,,,,,.....,..,.. .                     .,::;i7i777ii;;i773J2,  :2JJSS1   1J1;:iKBX   ,;.  7###                                     
      71;,:1:.;,,,.,:; ,,,,,,;,.:,,.:7.   ,,:.. ..    ,::.,,..;.,,.,.,.,,..,,,,,.                         .::;777;777;77;7iiJJ1. .J2J2SZ,  ,JJ7,;JK@Z  :7i.. 1##g                                       
     ,J,. ,. ;,,,:.,;, 7,., ,,,., .. ,.,77:,..... .         ......., ,,. .                           .:::7:7;;;7:7;;:,7:i3J1,  7JJJZXi   1ZJ7:7XE@,  :1i,, S#Mg                                         
     3:..;;..;,,:,.:,.:,,,: :,..,,;,::,::.,,.,.  ..                                             .;:7i7i;:7:;:;;;::;;7iJ33, .i1J12S3,  73J37:1SE2   i7:.  7Bg@####X                                      
    1:.:,:,.7,,,:,..; 7,.,, ::,.,..,,::.,7.;i7,.    . .                                    .:;i1i:;;:,,,,,:7;;,.:77i3i,  ;333ZS2;  :3J1;77KBS;  ;17    S#BM#######g,                                    
   7,,:.,:,,i.:,;, ;, 7,,:, ;;.,:,.;,,: .    ZJ ,:  . ,                               :7i13i;;,:,,:,:,,;:,, .,7i71i;.:713JZX2:  :3J2i1iJggJ  ,i1,  :##WBZM########ZK                                    
  .7:,;.;;,:7:;,,, ;; ;,.,, .7;.:;,,,: ,@2 , W#, ,:;,. ..                      ,77i331ii;.:,,:,,,,,:,,:,,,;;;7i7i7,77i3XXJ,  ,1JJi7;iZSZ   77;   X##HB@2g##3W#####EH                                    
  ;:,;.,;,.,,,,, 7 7: ,,,,;,.;:.,,,:,,:,      :17 .7:;;7;:,:,:,,;::,;;:,7i73JJ3117;;:;;,,:.,::::,;::;::,:;13Ji7:;773J2J,  ;33331712XJ,  i17: ,7###JgMK1H##HiE######E                                    
  7,,; ,,..i:,,.,i ;.,.:.,,, :7;,,:,,,.,,7i:,  ,#X,,,,,,:,;:77i711117133J311;77;;:;::,,,;:7: ,.,,,, ,:i3J37:,,;,33Z1;  :32J1:i72S1,  717.  ;H#HE@EEHJ3####XKM###### 1                                   
 :7,:: 7;,,37..,,i .;:.;::;;.  ;:. ,,.,,,,:X#J S1.,.,:,:,: ;; ::   ;i17,.i;7;7;;7;:7;;;::,,,.:,.,;1SSJ1;:::;7712i,.,7JJ317:72K27  7i7.  1S1gBMMMB@XiX####S #H######:i                                   
 7:,,i ;;. :i,,;,7, i;:.:,:,;:..::,..,,,,.. ,2S: .:7:,,;13;i2;ZJ,1J1iii2i1ii7i777;1;:;:;:..:;1XSSJi.,,7::773JJ1.;1JJi7;,;JKZ;  717.  1B#MHM##BSgSZ2######.2BW######E                                    
 ;,,,i ;:,,,3.. ,,;  ;;,,:,,,,:..,7,;. ,,,:     ,,,,:;77..;:,:,;17;7:;;;777ii7i;i;;,,;i31XKZJ1:.:;:7:;;1J3,,,;ii37;;.7JSZ7  :1i:  3W##KB##W7JKgXggE####E1XHS####@B:                                     
 i;,:7, 7,, 1;::;:,:  ;,,.,:,,,:.,.,:7;:....:,,,,,:,:,:.::,,,,..:.7777771i7777;i11JJKZZ3 i::7i;;::7iS37 ::i1i37;:,;J@Si  :i77:  B##gE###J ,XEHZ2SZ####M12X1####@Z                                       
 i,,,:J ;;::::,,.::;i,,;;.,,:,:,,:;,.,,7;7;,,.,,.,,,,,,,,,::;i7773iii771773JZZ2X1J3 ,::17i;7;7iZZJi;.;1111i;;:71KZ3,  7717,   ##g3EWS   7H##M .:J####HXZXg####EH2                                       
 i::,,2,;1:.,::;:::,:;. .7;:.,:::,,,::::,::77i77;7;:;::,::,::;7;i77212Z3J117; .::i7i777i122J3;:: ;i131i;;,;JZZ2:, ,i;. .  .B#WBBgJ; ,S#M##K  .:####Wg222K####E#g                                        
 i;:;:7: 7i::,;i;,.,,:;;. :i7:.,,::;:,,:.:,,:::,;1i2iJ1JZ32J2171i7i:,.  .:,::77777iJJZS17i. ,1131J17,,:722S7. .7J7   7gXW#@gB@KKHHEESK##J   :g###MH@2JZM######J                                         
  1,:;:7  :::,.,7;;:.:,;7:. .;7i:,,.,:;:;:::::,;,.., ...... . .. ....,;777ii33XXXJ2i. ,;i11131i;: ,7JXJ3, ,;1Ji: 7S##WgS@WEEE@@KXJi@##     X###MWg; 1H#######:                                          
  3i:;::7: :7,. .:;:,:,,,;;7;  ,:;77;,. : ,..,..,,:,,;:,.., ,,.::;1iJ3JJXXJZ71,  ,7713111i7;:,:1ZXJ1: .iJJi7:, XE#@SJ@#WHgSX2Z31Z##X    7M####EK. ;K#####E##                                            
   J77i7:71..i1:.,,;;::;,,,,,7:::..::77i17i1i;;i7;;:77713J2JJJgXXZ23i7i,    :77i77:;;;,;:iJJSJ7;.  17ii7;  2gE#HJXgHWEHKXZJ2KHB#E:  :iK####W@3  2K#####ME#X                                             
   ,i,., ,:i: ,37:..,:;;;,;,,:::::::;;:,:,;;i77i7i1i1;i;;i:::.,,  ..,:;:77ii;,;7:i773JZSXi  ,.;i3317,  iHEEB3JZg@@KS3i71B#W@g211Z12@####W@KJ 1X@######W#g                                               
    .2,,,;,;;1, :33;:...,;;;7:,,:::,:,::;:,:,,,,,::,,,:,,;;;7i;;7;;7;::;;:7;ii13X2K2:;   ;iiii;,,  .;3giZ@gggHBgE##E#BKJ, ;JXZXKE####M@S21;iZE######2;K                                                 
     .Z17,::,:7i.  .ii77,.. .:;;;;;7;77;;:;:::7:;;;7:7;;;7:::::.. .  ;:7122XJXi:7   :i:;:;.;  ;1 ,22XE##MS2Z2i;      .3XKHHWM#####E@X2J2XXKE#####Ki X                                                   
       721:::::,;;;.  .:73317,. .   . ,.,.::;77:7:..,, , ,   .,73XXXKS277 .   .:;711;,13,3Zi i1Z@#########gJ77712KggBMM########Hg2JJJ2XKg######Xg22                                                     
         7X37::,,::7;7,,, ..;7333JJJ377;;;,;.:,::.71333ZSKSgXZ13.      :777i3ii;17  1E#E#ME################################BKZi:7ZSSgE######EKEK                                                        
           ;111;;;,::1:;;;7;::,...:.:711i1X211S2JJX71,,.     .:;71;7771133Z17,iW@S##S;    ,ZE#####MW###################@3   .,2XSKW######W#EK1                                                          
              :1131i;:,,:,;;7;;7;7i;7;;7,:.,,,,,,,7:;7i1;;;77;i112XSBJ3;7i3iZHM37  1ZXJ1:  ii J###HSZ1Zg@@SKggXZJ:      ,3XK@@M#######E##K;                                                             
                  :731S3J3;;,,:,.,,,.:.,:,,,  ..,,;,;1iXKBHMEHSJi;:,1:KX3;            ,ZgHS,   #####M2:            :2@@@BM########HHWES                                                                 
                        :1J1BgKBEXXBg@BKB@K@MWHWW@BH@27,. ., .,;, .                       ,EH2,X#M###########################MXJX@2.                                                                    
                                    . 7:i:77:, .      .,                                        32SH##################X,S@HZ77:.                                                                        
                                                                                                       .;B#####E

Basically, there is a spring holding closed a valve on the thermostat. The flange on the thermostat otherwise closes the opening. When the temperature reaches around 180 degrees fahrenheit, the wax melts; going from a solid to a liquid provides even more motion than simply heating a liquid.

In order to test a car's thermostat, you can slip a feeler gauge or other similar thin, flat piece of metal in between the mounting flange and the valve. Now hang the thermostat in a pot of water with a thermometer to watch the temperature. When the water temperature reaches (or at least closely approaches) the intended opening temperature of the thermostat, it should open and fall off of the feeler gauge. Now gaze in awe as the valve opens quite far; sometimes more than an inch.

Replacing a thermostat is generally as simple as removing the housing from the engine via two or three bolts, pulling out the old, and dropping in the new. You will typically also need a gasket. One generally does not apply RTV or other silicone sealant to the gasket, but this is not true of all cars. Check your service manual.


Incidentally, the kind of thermostat most often found "in the wild" (which is to say, in your home) is two strips of different kinds of metal with different rates of expansion (bimetallic strip). They may be simply straight strips bonded together (as in my aquarium heater) or, more frequently, arranged in a coil, as in most thermostats intended for control of heating and cooling. The strip will be seen to curve or deflect itself slightly until it makes contact. The coil, by contrast, provides rotation, and is usually used to control a mercury switch.

In many applications, the thermistor (coupled with some sort of computer control) is replacing the thermostat, because it is a solid state component which seldom if ever wears out. Any "electronic" or "computer controlled" thermostat works on this principle, and has a microcontroller which monitors the resistance of the thermistor to determine its current temperature. This is even used in automotive applications, for example to switch an electric fan on or off.