Chills are caused by rapid contraction and relaxation of the muscles to increase body temperature. A fever can help to kill infectious pathogens or prevent their spread because most pathogens that cause infection survive best at a normal body temperature.