When your car only clicks when trying to start it, it could be due to a low or dead battery or loose connections to the battery or starter or it could be a bad starter itself.
Try charging the battery up first or get a jump start and check the battery cable connections and make sure they're not corroded or loose.
If it still only clicks then you likely need a new starter.