The sentence The girl likes is ungrammatical, because the verb "likes" is A Transitive verb and this kind of verbs has to have a direct object to be complete.
The sentence The boy laughed is grammatical , because the verb "laughed" is an Intransitive verb, and this kind of verbs do not require an object to be complete, the meaning arrived.