I initially didn't understand your "electronic crank" reference. But given the Aliexpress link, I'm sure you mean rotary or quadrature encoder.
I tried searching for a datasheet but only managed to find
this reference to "Output NPN" which likely means open collector and therefore requires a 10K (or so) pull-up resistor to Vcc. Given that the encoder also has a Vcc input (probably because it uses optical slot switches), you should confirm that the pull-ups are present. That is, use a multimeter on A then B outputs to see if they can produce both Vcc and 0V as you turn the wheel slowly.
There are many examples of interfacing encoders with Arduino like
this one.
If you want to use interrupts (vs polling), then it's only necessary to connect one of the encoder outputs to an Arduino interrupt pin. The interrupt routine will read the state of both encoder outputs to determine direction. To debounce, from each encoder output put a 10K series resistor then 10nF cap to ground before the Arduino input pin (see attached).