L298N ground potential difference fried arduino nano

Another term for ground is reference point, they all need to be connected together.