I have been having headaches and dizziness and a swimmy feeling in my head what can be the problem?

Many things. Most likely something benign such as viral labyrinthitis but could be something more serious such as intracranial mass. If symptoms do not resolve you should see a doc for at least head ct.