As others have said, chickens cannot be trained with punishment. They simply are not capable of understanding it.
What you can do is add a second layer of fencing to your garden. In our area, Lowes carries 2 foot tall, 2" mesh chicken wire fairly inexpensively. If you don't care how it looks...