Can i transfer data (basically +5 and Gnd, SCL and SDA) from one controller to another secondary control using DB25 cable? or is there something that i am doing wrong?
There is no reason why you shouldn't be able to.
Why are you using a 25 pin connector and cable is all you need is 4 wires?
When you connect the boards together directly, pin 1 connects to socket 1, pin 2 connects to socket 2, etc. That is not necessarily the case with the DB25 cable. Depending on the intended purpose of the cable, there may be wires crossed between the two ends, or less than 25 wires present in the cable.
If you chose one of the crossed wires or unconnected pins, that would explain your problem.