Position a brushless dc motor with encoder 12V

Looks like that "encoder" is just a single channel pulse generator, you can get RPM from it but not position.
Appears to be 6 pulses per motor revolution and 270 per shaft rev, so if you counted 54 pulses that would be 72 degrees, but you would have to use the state of the direction pin to determine whether to add or subtract pulses to the count.