Power for 24VDC 5A Motor
How much current does your motor draw under load? 

What size are your batteries? 

How much distance between the batteries and the motor? 

You can power your 24V motor from 2- 12V batteries in series but the rest of your questions depend on the answers to my questions.