What kind of energy change takes place in the fuel cell?

A fuel cell (like a battery) converts chemical energy to electrical energy.

The main difference being in the fuel cell the energy rich chemicals are continually being resupplied, while in a battery the energy rich chemicals were put in when the battery was initially assembled and cannot readily be replaced or resupplied.