F150 won't start

2000 F150 5.4L. mileage 198,600. Fully charged battery but won’t start. Battery tested good. Doesn’t even turn over and under hood light goes out after turning key. Some relay? under dash clicking. Clicking stops when brake pedal depressed. Disconnected battery terminals and reconnected then under hood light comes back on but still no start.
Problem started when battery suddenly drained overnight then when recharged it wouldn’t start then the clicking.