Likely a battery, wiring or starter issue. I would take sandpaper to all wiring connections, starting with the battery connections. Charge the battery. Have it load tested if it's more than a couple of years old. If still issues, have the starter inspected and cleaned or rebuilt, or do it yourself -- may need cleaning and brushes.