What are the primary caused of fever?

Primary causes may include:
1. An infection
2. Certain medications
3. Heat illness
4. Cancers
5. Autoimmune diseases
6. Some immunizations like Rabies vaccine.