As Britain reeled from the killing of 41-year-old Labour Party lawmaker Jo Cox, authorities were focusing on one thing in particular: determining her attacker’s motive.

Ms. Cox died after a man carrying a gun and a knife launched a bloody daylight attack on her in a street in northern England on Thursday, authorities and witnesses said.

The...