A hazard is an existing situation that is likely to cause harm. For example, ice on the street is a hazard.
A risk is a potential situation that does not exist, but theoretically could exist - if it did exist, it would become a hazard.
For example, there is a risk that ice could form on sidewalks if it rains in freezing temperatures.