Is this a valid case in blockchain?
You didn’t specify, so I’ll answer in terms of the btc blockchain:
When two valid blocks with the same blockheight are found, only one will be accepted into what will become the longest valid chain. The other will be discarded, it is what is called an orphan block.
Usually, the block that propagates through the network first and fastest is the one that will be accepted into the longest chain. The number or nature of the transactions will not affect which block is accepted (so long as all of the transactions are valid). The miner that found the orphaned block receives no part of the reward, since the orphaned block is dropped from the chain.