post your schematic or how you wired everything.
ground goes to ground (it's always common) unless you use galvanic isolation and separate power for motors and logic, in which case logic ground shouldn't mix with power ground, however, ground should never be directly connected to v+.
if you connected 5v or motor supply to ground you got a short circuit, and that explains the drop.