Several factors could be at fault:
Blown bulb (check first!)
Faulty switch
Tripped circuit breaker
Moisture damage in the light fixture (quite likely)
Issues with the electrical wiring
Faulty motion sensor
Faulty light (quite likely)
It's important to consult a qualified electrician to diagnose the problem safely, especially if it involves electrical components.
In some cases, yes. While simple bulb replacements might be manageable for DIY enthusiasts, electrical wiring for new outdoor lights, should always be done by a qualified electrician. This ensures correct functionality, longer life, safety compliance and avoids potential hazards. This is even more apparent for lights that are not going on the walls of the property, and where cables and joints are being buried in the garden.