1306 6 pin spi oled not working with nano but works on uno

Hy i wired an 1306 6 pin spi oled module with arduino nano and uploaded adafruit sample code and it worked fine but as soon as i disconnect and connected it again it stops showing display i tried to test my oled panel on uno board and it worked just fine i checked all the pins and my wires nothing seems to be wrong its just not working on nano now but works on uno can any one help me please.
This is the working picture of my panel before it mysteriously stopped working ignor the resistors they are for sensor