there are a number of checks.
1. confirm the battery is fully charged (don't ask me how I know this should be the first check.
2. get jumper cables and connect one end to battery (+) then touch the other end to the starter - if nothing happens, it is the starter
3. If it spins, touch the cable to the starter side of the solenoid - if it spins the problem is between the ignition and solenoid.
isolating the issue is the first and easiest step