The fridge is a decorative block. It can not be interacted with.
When a Rotom inside of a Poké Ball is thrown at the washing machine, it will become Rotom-Wash and it will learn the move Hydro Pump. Throwing Rotom at it again will revert it.
Washing Machines can be crafted.