One may exercise before Davening if it will help them in their Avodas HaShem and Daven with more concentration, or if they will not have time to exercise after Davening. Showering, as well, is permitted if done to help one’s Davening, for example, to feel clean or awake. (Similarly, one is allowed to tovel in the mikvah before Davening.)