Feed it sunflower seeds, hamster candy and fresh fruit/veggies (nothing too sour/high in acid!!) from hand. Carrots, tomatos, strawberries, salad etc is fine.
NEVER pick it up. Lay your hand palm up next to it and let it sniff and nibble at your fingers. When (s)he's ready, (s)he'll climb on your hand. If you pick it up by force, they get really frightened and will try to escape or bite.
Don't wake it up while it sleeps, either, as it is highly disturbing to them. They may scream at you, even. They're nocturnal animals, and might be really tired and grumpy during day time.

Sadly some pets are just like this. You can try handling it more to get it used to being held, however it won't necessarily work. Usually handling them when they are young makes it more likely for them to like people. It's not easy to make a hamster like you as it is with something like a dog.