A clicking solenoid is often caused by low voltage. That can be a discharged or bad battery, or bad connections. You need to check the voltage at the battery and downstream from it. It can also be a bad ground problem.