There are two types of insomnia - primary and secondary. Primary insomnia has no connection with any health condition, while secondary insomnia has a connection to it.