while i've communicated with spirits around bedtime myself, the logical conclusion is you were semi-awake. similar to a daydream, you began to dream, but were still awake, you began to hear sounds from your dream, and thought they were spirits. the strange noises could of been from your house; foundation settling, furnace turning on/off. first thing you need to do is rule out all the logical conclusions. how old is your house? older houses make more noise than newer houses. try to find objects that could of made those noises around your room, then throughout your house.
if it comes up leaning more to the spiritual side, meditate, trying to connect with the spirits again. this can be harder for some people, so balance your chakra's, and try having some psychic tea right before your meditation session. the spirit with me likes certain incense, try lighting some while saying a chant, something like 'i offer onto the spirits who dwell here this incense of (name) please come and speak with me, i mean no harm.' or something similar. it can rhyme if you want. after a while, try to sense if there's anything. if you start to feel something [or don't but want to try anyway] start asking questions. wait a while before asking the next one unless you hear/feel an answer. at the end of the session, write down everything. you could try during, but you should try to keep in a meditative state the whole time. you could also try skrying, pendulum, or automatic writing. do not use a Ouija Board, no matter how tempting, it's a bad idea.