Car acts dead after it gets hot...

The car acts like it is dead and won't crank but all my lights still work and I can start it by putting the key to the on position and bumping the starter relay
Define "bumping" the starter relay