Problems in falling asleep or in sleeping enough are designated as insomnia.
More about insomnia and its treatment.