Does a 98 Chevy Malibu fuel pump work in a 97 Chevy Malibu?

If they are the same engine size, they are interchangeable. I would not put a fuel pump from a V6 on a 4 cylinder, and vica-versa. The Malibus from 97-02 all have interchangeable parts