Does a ranged spell or touch spell attack coun…

Does a ranged spell or touch spell attack count as an attack?

@JeremyECrawford Question about attack action. Does a ranged spell or touch spell attack count as an attack?