What did you hook up? You mentioned using cords? But first off, what you pictured, you need to make sure it’s wired correctly. There is no standard for barrel jacks. The center pin can be positive or negative and the jacket and be positive or negative. If you’re using a generic 5.5x2.1mm female barrel jack most generic 12v power supplies overwhelmingly do center pin positive and jacket negative. Once you get polarity correct check the amperage rating of the supply and the motor. Motors usually require huge in rush current to start and can easily trigger a short circuit protection on the supply output