This video shows a demonstration of what is claimed to be Dr. Johnson's Heat Engine. I'm not sure that a Dr Johnson was responsible for it but it's available commercially in toy form.
It uses the shape-memory property of nitinol to convert a temperature difference into work.
My question is, if we cranked the wheels, could we use it in reverse to generate a temperature difference? If not, why not?