So one way to figure out if electrons and quarks are made of smaller particles is to smash them at higher and higher energies. If we reach a smashing energy that is higher than what might be holding the electron or quark together, then they would break apart and we would see that they are made of smaller pieces.