Anything within six feet (if I remember correctly) of a water source needs to be a gfci.
Are the breakers tripping? Do you have a good connection with your outlet and wires?
It is possible that the wiring pattern is different for the replacement and the original.
GFCI outlets usually come with instructions. You might want to buy try one.
Welcome to the Forum!