Slide an air-hockey puck at the rail at a slant. It comes off at the same slant on the other side, as if its path had been folded at the rail. Light does exactly this. Draw the normal, a line perpendicular to the surface where the ray hits. The incoming ray makes an angle θi with the normal, and the reflected ray leaves on the other side of the normal at an equal angle θr. Measure from the normal, not the surface: a ray that just grazes the surface has θi close to 90∘.
Every surface reflects some light, which is how you see things that do not glow. A mirror is so smooth that its normals all point the same way, so a parallel beam stays together and forms an image. Paper is rough on a tiny scale, so its normals point every which way and the light scatters in all directions: diffuse reflection. Each tiny ray still obeys θi=θr; only the surface is messy.
Reflection keeps the wave in the same medium, so its speed, frequency and wavelength do not change; an echo has the same pitch as your shout. When a wave crosses into a new medium instead, its speed and wavelength change and its path bends: that is refraction. At a window both happen at once. Most of the light passes through, bending at each face, and a little reflects, which is why you see a faint copy of yourself in the glass at night.
Think of it like this. Reflection is a bank shot in pool: a ball sent at a cushion comes off at the same angle on the other side, so you aim at the mirror image of the pocket behind the cushion. Real balls spin and lose some energy at the cushion, so their angles drift a little; light obeys the rule exactly.
Core idea. A wave that bounces off a boundary leaves at the same angle from the normal as it arrived, in the same medium, so its speed, frequency and wavelength are unchanged.