The starter cranks sometimes so I don't think it's a battery problem. Is there an electrical connection that can be making a contact part of the time. The brake has to be be applied in order to start so I'm wondering if there is something that could be related to that. Any suggestions?
"I have an engine that won't start" is all we get from your post; now, read it back & see if you could answer that same question if someone else asked it of you...