Cooling fan won’t let car start

When I got my car, it turned on it runs and all that, but the cooling fan motor was out so when I got a new one and put it in once I connected it properly my car wouldn’t turn on but then the second I unplug it my car turns back on… does anyone know what the issue could be?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0