Make a table. For 2(x+1) and 2x+2: at x=0 both give 2, at x=3 both give 8, at x=−5 both give −8. The two columns match in every row, because distributing turns one expression into the other. Now compare 2x+1 with 7: at x=0 you get 1 against 7, at x=3 you get 7 against 7, at x=5 you get 11 against 7. They agree in just one row. The first equation is an identity; the second is conditional.
Algebra shows the difference without a table. Simplify both sides. If they become the same expression, the variable cancels and leaves something always true, like 2=2: an identity, true for every x. If you reach x= a number, the equation is conditional. A third case is a contradiction: x+1=x+4 simplifies to 1=4, true for no x at all.
A few lucky values can make a conditional equation look like an identity. x2=2x is true at x=0 and at x=2, so two quick tests might fool you, but x=1 gives 1 against 2. Agreement at a few points proves nothing. One value where the sides differ proves an equation is not an identity, and simplifying until the sides match is what proves that it is one.
Think of it like this. An identity is two ways of counting the same pile: 'x boxes of 6 eggs plus 6 loose eggs' and 'x+1 boxes of 6' always give the same number of eggs, however many boxes there are. A conditional equation is more like two buses that reach the same stop at only one moment of the day.
Core idea. An identity holds for every value; a conditional equation holds only for special values.