Location and luminosity are fundamental elements of any good shot; it takes planning to bring it off.
Research a location you are interested in or have seen and plan the viewpoint from which to take your picture at or near sunrise or sunset, using tools like Google Maps, The Photographer's Ephemeris and the weather forecast.