you really have to understand what the problem is. it could be a lot of things. for most of the people it is stress or diet. although, some people have serious sleep disorders not related to these factors - then only doctor can help!
regarding the sleeping pills - I assume you're taking pills you got over the counter - these are almost never effective in serious sleep problems, go to a doctor