How can one get rid of losing hair?

I am losing hair on the head and temples. Please help.