A 49-year-old woman driving a car stopped on the tracks at a Massachusetts crossing and was struck by a commuter rail train, police said.