Please help me out of this situation

I move my legs during sleep and i feel a type of current in legs when i try to sleep and i keep yawning whole day and i feel very very tired when i wake up . Please tell me proper medication for it