if not cranking when hot, there could be multiple electrical issues, including wiring, connections, battery cables, bulkhead connections, etc.
what car is this ? any other symptoms ?
the more info we have, the better chance we have of helping you conquer your difficulties.
beer