asd relay clicking,please help

99 300m.add relay clicks,no crank,but if I disconnect the fuel pump and unplug the coil packs,it will click a few more times than stop,then I can start it,,any advice where to go from here,,i have changed crank sensor,and I'm is about 9 months old,thanks for any advice u can give would be great,,thanks

When I turn the key to the on position the relay starts clicking and the fuel pump runs continually ,but if I unplug all the coilpacks and fuel pump it clicks for a few more seconds and then stops,,at that point I can crank it and it starts n runs fine