DETROIT — Mazda Motor Co. has decided to stop building the midsize Mazda6 sedan in the U.S., raising questions about the future of a U.S. factory that it runs jointly with Ford Motor Co. The Japanese automaker said Monday that it will continue building the 6 at the factory in Flat Rock, Mich., near Detroit, until the end of the current model’s life cycle.