I asked you to show me a close-up photo before you did anything. I wanted to be certain which components were capacitors and which were inductors. I had also intended for you to perform some resistance measurements. The board I showed you is
similar but obviously not identical.

Your earlier photos show that the 5V TVS diode was still installed and had 5V across it. Why did you subsequently remove it?
When you said that the "capacitor" was sparking, were you referring to the small component adjacent to the "+" sign, and below the 5V TVS diode?
Why did you remove the inductor at the RHS of the PCB? By doing this you have disconnected the +12V supply from the motor controller.