Involved in the transmission of sensory signals from the chemoreceptors to the flagellar motors. CheA is autophosphorylated; it can transfer its phosphate group to either CheB or CheY (By similarity). ATP + protein L-histidine = ADP + protein N-phospho-L-histidine.