Solution:
Number the vertices from 1 to 14. We need to make sure that all the even-numbered vertices are tails and all the odd numbered vertices are heads or vice versa.
Let's look at the 7 odd numbered vertices.
Without loss of generality, assume that there are initially more heads than tails on the odd numbered vertices. That is, we assume that there are initially at least 4 heads on odd numbered vertices. This means there are at most 3 tails on odd numbered vertices and at most 3 heads on even numbered vertices. So we flip all the tails on odd numbered vertices and all the heads on even numbered vertices. Then the total number of flips required is at most 6.
If there are exactly 4 heads (and 3 tails) on odd numbered vertices, then we would require at least 3 flips to make all the odd numbered vertices the same, and similarly at least 3 flips to make the even numbered vertices the same. So we cannot guarantee to be able to achieve our goal in fewer than 6 flips.