XY position control and EKF2

What sensors and related algorithms does XY position control include? And which sensors are involved in the calculation of EKF2? We are not experts in algorithms, and hope to have relevant answers. Thank you