You get power to the starter because it's a direct feed from the battery. The solenoid gets power from the ignition switch in the crank position. Test the solenoid lead on the ignition switch with a voltmeter. If you get power directly from the ignition switch but not to the solenoid look for a break in the line.