The best month to visit Germany is August or possibly September. Although May through September are awesome months to go because the weather is so nice. May, June, and July can be very rainy. That is why August and September are considered to be better.
In the winter, Germany can be quite cold so travel can be difficult and chilly too. It does depend on what you want to do while you are there though because if you are going to snow ski, you'd want to go in the winter.