How to map a textured image to sphere or cylinder

I don’t know how to map a textured image to sphere or cylinder without using automatically texture-coordinate generation. May you send me a way to solve it? Thank you.