Who claimed that our subjection to pain and pleasure should be the foundation for our lives?

Check out Jeremy Bentham (1748-1822), "An Introduction to the Principles of Morals and Legislation" Chapters III and IV.