Need Help!!!

I have a question. My 2001 Polaris Sportsman 500 HO 4 wheeler’s electric start stopped working yesterday. The pull start was able to start it. I noticed my speedometer needle stopped working right before the electric start went out but the lights on the speedometer and head lights on the 4 wheeler worked. So I don’t think it is the battery. I just ordered a starter and solenoid. Do you think that would get the electric start working? It just weird the speedometer stopped. Would that also fix the speedometer?