Can sperm motility be affected by anterior cervical dysctomy?

Not likely. Unless you had some complication of the surgery that would have affected your testes, which would be very unlikley, the two should be unrelated.