Final answer:
Jean-Jacques Rousseau believed that the government must listen to the will of society and that the role of government is to secure freedom for its people.
Step-by-step explanation:
The philosopher who believed that the government must listen to the will of society (social contract) is Jean-Jacques Rousseau.
Rousseau argued that governments must submit to the general will of the people, and the people must actively and directly participate in their governance.
This belief is in line with Rousseau's view that man is born free but is everywhere in chains, and that the role of government should be to secure freedom for its people.